修改配置

master
夜笙歌 1 week ago
parent 5e0a68a934
commit 8a0e936f81

@ -3,7 +3,7 @@
"target": "esnext",
"module": "esnext",
// "useDefineForClassFields": true,
"moduleResolution": "bundler",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"strictNullChecks": false,
@ -17,7 +17,8 @@
"allowJs": true,
"experimentalDecorators": true,
"paths": {
"@/*": ["src/*"]
"@/*": ["src/*"],
"@": ["src"]
},
"types": ["vite/client"],
"skipLibCheck": true,

@ -13,7 +13,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
resolve: {
alias: {
'~': path.resolve(__dirname, './'),
'@': path.resolve(__dirname, './src')
'@': path.resolve(__dirname, 'src')
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
},
@ -26,6 +26,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
proxy: {
[env.VITE_APP_BASE_API]: {
target: 'http://localhost:6080',
// target: 'http://192.168.137.1:6080',
// target: 'http://175.27.215.92:6080/prod-api',
changeOrigin: true,
ws: true,

Loading…
Cancel
Save