chore: 优化部分配置

This commit is contained in:
2024-04-09 22:29:07 +08:00
parent 3f1ecef75d
commit e84b1febd8
4 changed files with 8 additions and 2 deletions

View File

@@ -68,6 +68,7 @@
"eslint-plugin-vue": "^9.13.0",
"less": "^4.1.3",
"less-loader": "^11.0.0",
"picocolors": "^1.0.0",
"prettier": "^2.8.8",
"sass": "^1.62.1",
"sass-loader": "^13.2.2",

3
pnpm-lock.yaml generated
View File

@@ -166,6 +166,9 @@ devDependencies:
less-loader:
specifier: ^11.0.0
version: 11.1.4(less@4.2.0)(webpack@5.90.3)
picocolors:
specifier: ^1.0.0
version: 1.0.0
prettier:
specifier: ^2.8.8
version: 2.8.8

View File

@@ -1,6 +1,7 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
@@ -77,5 +78,6 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
import('vue')
}

View File

@@ -32,7 +32,7 @@ export default defineConfig(({ command, mode }) => {
target: env.VITE_API_BASE_URL, // 后台服务器地址
changeOrigin: true, // 是否允许不同源
secure: false, // 支持https
rewrite: (path) => path.replace(/^\/api/, '/')
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},