登录问题修改

master
lzq 2025-08-15 10:32:07 +08:00
parent f4d7d6333f
commit 9f33b86a18
4 changed files with 9 additions and 6 deletions

View File

@ -101,7 +101,7 @@ function loginSubmitHandler() {
width: 100%; width: 100%;
display: flex; display: flex;
background-image: url("@/assets/images/login_bg.png"); background-image: url("@/assets/images/login_bg.png");
background-size: 100%; background-size: cover;
} }
.left-zone { .left-zone {

View File

@ -90,10 +90,6 @@ function bookmarkHandler(data: AppTypes.Menu) {
reloadUserInfo() reloadUserInfo()
}) })
} }
onUnmounted(() => {
Evt.off('logout')
})
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>

View File

@ -77,6 +77,11 @@
<IxInput control="email"/> <IxInput control="email"/>
</IxFormItem> </IxFormItem>
</IxCol> </IxCol>
<IxCol :span="6">
<IxFormItem :gutter="[0,10]" label="密码">
<IxInput control="secret" type="password"/>
</IxFormItem>
</IxCol>
</IxRow> </IxRow>
</IxFormWrapper> </IxFormWrapper>
</IxForm> </IxForm>
@ -204,7 +209,8 @@ const formGroup = useFormGroup<UserTypes.SysUser>({
account: { account: {
username: [ undefined, Validators.required ], username: [ undefined, Validators.required ],
email: [ undefined ], email: [ undefined ],
phone: [ undefined ] phone: [ undefined ],
secret: [ undefined ]
}, },
}) })

View File

@ -9,6 +9,7 @@ declare global {
username?: string username?: string
email?: string email?: string
phone?: string phone?: string
secret?: string
} }
interface SysUser { interface SysUser {