update url & fix build issue

This commit is contained in:
weichengwu 2025-11-16 20:01:15 +08:00
parent 074d9728ea
commit c2e27c4b34
5 changed files with 9 additions and 8 deletions

View File

@ -1,3 +1,3 @@
# 生产环境配置
NODE_ENV=production
VITE_API_BASE_URL=
VITE_API_BASE_URL=/api

View File

@ -24,5 +24,6 @@
"typescript": "~5.9.3",
"vite": "^7.2.2",
"vue-tsc": "^3.1.3"
}
},
"packageManager": "pnpm@10.15.1"
}

View File

@ -10,8 +10,8 @@
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true

View File

@ -16,8 +16,8 @@
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true

View File

@ -14,9 +14,9 @@ export default defineConfig({
host: '0.0.0.0',
proxy: {
'/api': {
target: 'http://101.35.149.39:8200',
target: 'https://fucai-claim.smartjinrui.cn/api/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
rewrite: (path) => path.replace(/^\/api/, '/'),
secure: false,
headers: {
'Access-Control-Allow-Origin': '*',