chore(bx-mobile): point API proxy to shanxia2.0 backend and add jsencrypt

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-09 16:00:32 +08:00
1 parent 7a0f1554bd
commit 4d75713e15
4 files changed
+18 -8

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
VITE_API_URL=/api
VITE_API_PROXY_URL=http://localhost:8000
+7
View File
@@ -11,6 +11,7 @@
"@vant/use": "^1.6.0",
"axios": "^1.7.0",
"dayjs": "^1.11.10",
"jsencrypt": "^3.5.4",
"pinia": "^2.1.7",
"vant": "^4.8.0",
"vue": "^3.4.0",
@@ -1573,6 +1574,12 @@
"node": ">=0.12.0"
}
},
"node_modules/jsencrypt": {
"version": "3.5.4",
"resolved": "https://registry.npmmirror.com/jsencrypt/-/jsencrypt-3.5.4.tgz",
"integrity": "sha512-kNjfYEMNASxrDGsmcSQh/rUTmcoRfSUkxnAz+MMywM8jtGu+fFEZ3nJjHM58zscVnwR0fYmG9sGkTDjqUdpiwA==",
"license": "MIT"
},
"node_modules/local-pkg": {
"version": "0.5.1",
"resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-0.5.1.tgz",
+8 -7
View File
@@ -9,21 +9,22 @@
"preview": "vite preview"
},
"dependencies": {
"@vant/use": "^1.6.0",
"axios": "^1.7.0",
"dayjs": "^1.11.10",
"jsencrypt": "^3.5.4",
"pinia": "^2.1.7",
"vant": "^4.8.0",
"vue": "^3.4.0",
"vue-router": "^4.3.0",
"axios": "^1.7.0",
"dayjs": "^1.11.10",
"@vant/use": "^1.6.0"
"vue-router": "^4.3.0"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@vant/auto-import-resolver": "^1.2.1",
"@vitejs/plugin-vue": "^5.0.0",
"typescript": "^5.3.0",
"unplugin-vue-components": "^0.27.0",
"@vant/auto-import-resolver": "^1.2.1",
"vite": "^5.4.0",
"vue-tsc": "^2.0.0",
"@types/node": "^20.11.0"
"vue-tsc": "^2.0.0"
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ export default defineConfig({
port: 5174,
proxy: {
'/api': {
target: 'http://127.0.0.1:8011',
target: process.env.VITE_API_PROXY_URL || 'http://localhost:8000',
changeOrigin: true,
},
},