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: [