fix: 解决 login 背景打包后消失的问题

This commit is contained in:
奔跑的面条 2022-06-15 17:36:06 +08:00
parent fa061c42ad
commit fcdc26e9eb
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -10,7 +10,7 @@ function pathResolve(dir: string) {
}
export default defineConfig({
base: './',
base: '/',
// 路径重定向
resolve: {
alias: [