From b639ad82996490f6d778b3bef68c7e71bc6b3e19 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sun, 26 Mar 2023 18:37:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4`vue-i18n`=20?= =?UTF-8?q?=E5=9B=A0=E7=89=88=E6=9C=AC=E9=97=AE=E9=A2=98=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=8A=A5=E9=94=99=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index e29fdb6..8cd1ea9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,9 +21,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { return { resolve: { alias: { - '@': pathSrc, - // https://github.com/intlify/vue-i18n-next/issues/789 - 'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js' + '@': pathSrc } }, css: { @@ -48,7 +46,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { // 线上接口API地址 target: 'http://vapi.youlai.tech', // 本地接口API地址 - //target: 'http://localhost:8989', + // target: 'http://localhost:8989', changeOrigin: true, rewrite: path => // localhost:3000/dev-api/users/me → http://vapi.youlai.tech/users/me