修改配置

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

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

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

Loading…
Cancel
Save