From fcdc26e9eb90fcee35051156bf0fd28fda7bd5f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Wed, 15 Jun 2022 17:36:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20login=20=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E6=89=93=E5=8C=85=E5=90=8E=E6=B6=88=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 2 +- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d8fda4e1..6cd657c5 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -315,7 +315,7 @@ $carousel-image-height: 60vh; align-items: center; width: 100vw; height: 100vh; - background: url('../../assets/images/login/login-bg.png') no-repeat 0 -120px; + background: url('@/assets/images/login/login-bg.png') no-repeat 0 -120px; .bg-slot { width: $carousel-width; } diff --git a/vite.config.ts b/vite.config.ts index 2c06b424..5e343f77 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,7 +10,7 @@ function pathResolve(dir: string) { } export default defineConfig({ - base: './', + base: '/', // 路径重定向 resolve: { alias: [