From bd6d065c44a25e218403c3dee881256c6975aef9 Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Sat, 3 Aug 2024 11:52:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E5=9F=9F=E5=90=8D=E5=9C=B0=E5=9D=80=EF=BC=8C?= =?UTF-8?q?package=20=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/package.json | 1 + admin/vite.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/package.json b/admin/package.json index a35e531..24e7113 100644 --- a/admin/package.json +++ b/admin/package.json @@ -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", diff --git a/admin/vite.config.js b/admin/vite.config.js index e2d600d..ffc777f 100644 --- a/admin/vite.config.js +++ b/admin/vite.config.js @@ -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地址有前缀,可以进行转写 }