style(web): 统一后台图标与全局视觉

This commit is contained in:
Zhou Weidong committed 2026-10-19 11:12:38 +08:00
1 parent 5c087f4db9
commit 97fbeda508
67 files changed
+737 -744

No files matched your search

+7 -7
View File
@@ -64,7 +64,7 @@ const schema = reactive<FormSchema[]>([
span: 24
},
componentProps: {
placeholder: 'admin'
placeholder: t('login.usernamePlaceholder')
}
},
{
@@ -79,7 +79,7 @@ const schema = reactive<FormSchema[]>([
style: {
width: '100%'
},
placeholder: 'admin123'
placeholder: t('login.passwordPlaceholder')
}
},
{
@@ -143,8 +143,7 @@ const remember = ref(userStore.getRememberMe)
const initLoginInfo = () => {
const loginInfo = userStore.getLoginInfo
if (loginInfo) {
const { username, password } = loginInfo
setValues({ username, password })
setValues({ username: loginInfo.username })
}
}
onMounted(() => {
@@ -170,6 +169,7 @@ watch(
// 登录
const signIn = async () => {
if (loading.value) return
const formRef = await getElFormExpose()
await formRef?.validate(async (isValid) => {
if (isValid) {
@@ -183,8 +183,7 @@ const signIn = async () => {
// 是否记住我
if (unref(remember)) {
userStore.setLoginInfo({
username: formData.username,
password: formData.password
username: formData.username
})
} else {
userStore.setLoginInfo(undefined)
@@ -196,7 +195,7 @@ const signIn = async () => {
}
// 是否使用动态路由
if (appStore.getDynamicRouter) {
getRole()
await getRole()
} else {
await permissionStore.generateRoutes('static').catch(() => {})
permissionStore.getAddRouters.forEach((route) => {
@@ -254,6 +253,7 @@ const toRegister = () => {
hide-required-asterisk
size="large"
class="login-form"
@keyup.enter="signIn"
@register="formRegister"
/>
</template>