From 62cd85931ff3e442d7be4528f51eb99ec9b7275b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E5=BF=A0=E6=BA=90?= <2048920439@qq.com> Date: Mon, 5 Sep 2022 09:01:36 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhttps://gitee.com/lyt-top?= =?UTF-8?q?/vue-next-admin/issues/I5PATZ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 付忠源 <2048920439@qq.com> --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index c8a6fc0..844db4f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -41,9 +41,9 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { chunkSizeWarningLimit: 1500, rollupOptions: { output: { - entryFileNames: `assets/[name].${new Date().getTime()}.js`, - chunkFileNames: `assets/[name].${new Date().getTime()}.js`, - assetFileNames: `assets/[name].${new Date().getTime()}.[ext]`, + entryFileNames: `assets/[name].[hash].js`, + chunkFileNames: `assets/[name].[hash].js`, + assetFileNames: `assets/[name].[hash].[ext]`, compact: true, manualChunks: { vue: ['vue', 'vue-router', 'pinia'], -- Gitee From 3442491251488adb72c1480e343bcafbc24ac593 Mon Sep 17 00:00:00 2001 From: fzy <123456> Date: Mon, 5 Sep 2022 21:53:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8C=87=E5=AE=9Avue-i18n=E7=9A=84?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20=E4=BB=A5=E4=BF=AE=E5=A4=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8yarn=E5=AE=89=E8=A3=85=E4=BE=9D=E8=B5=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 403adbc..c258aa2 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ pnpm-debug.log* *.njsproj *.sln *.sw? +/yarn.lock diff --git a/package.json b/package.json index daf6876..3b407b3 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "vue": "^3.2.37", "vue-clipboard3": "^2.0.0", "vue-grid-layout": "^3.0.0-beta1", - "vue-i18n": "^9.1.10", + "vue-i18n": "9.1.10", "vue-router": "^4.1.2" }, "devDependencies": { -- Gitee