更新 接口基础域名地址,package 依赖

wenjuan
鹿和sa0ChunLuyu 1 year ago
parent 94a38d4c52
commit bd6d065c44

@ -12,6 +12,7 @@
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
"@vueuse/core": "^10.4.1",
"@vueuse/shared": "^10.11.0",
"axios": "^1.5.1",
"echarts": "^5.4.3",
"element-plus": "^2.3.14",

@ -24,7 +24,7 @@ export default defineConfig({
port: 5174,
proxy: {
'/api': {
target: 'http://tongyonghoutai/api', // 实际的API服务器地址
target: 'https://api.hainan2024.sa0.online/api/', // 实际的API服务器地址
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '') // 如果API地址有前缀可以进行转写
}

Loading…
Cancel
Save