refactor: 登录页logo图替换为img标签

This commit is contained in:
Hooray Hu 2023-11-21 15:50:40 +08:00
parent 98e85220d1
commit e57331905f

View File

@ -21,6 +21,7 @@ const router = useRouter()
const userStore = useUserStore()
const banner = new URL('../assets/images/login-banner.png', import.meta.url).href
const logo = new URL('../assets/images/logo.png', import.meta.url).href
const title = import.meta.env.VITE_APP_TITLE
// login register reset
@ -152,7 +153,7 @@ function testAccount(account: string) {
<div class="bg-banner" />
<div id="login-box">
<div class="login-banner">
<div class="logo" />
<img :src="logo" class="logo">
<img :src="banner" class="banner">
</div>
<ElForm v-show="formType === 'login'" ref="loginFormRef" :model="loginForm" :rules="loginRules" class="login-form">
@ -381,11 +382,8 @@ function testAccount(account: string) {
position: absolute;
top: 20px;
left: 20px;
width: 30px;
height: 30px;
border-radius: 4px;
background: url("../assets/images/logo.png") no-repeat;
background-size: contain;
box-shadow: var(--el-box-shadow-light);
}
}