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 NODE_ENV=production
VITE_API_BASE_URL= VITE_API_BASE_URL=/api

View File

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

View File

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

View File

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

View File

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