style: 代码格式化
Former-commit-id: f44209861939f6481b37e46da09c10fac0804336
This commit is contained in:
@@ -124,7 +124,6 @@ watchEffect(() => {
|
|||||||
bScroll && (bScroll as any).refresh();
|
bScroll && (bScroll as any).refresh();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@@ -133,13 +133,11 @@ const state = reactive({
|
|||||||
username: 'admin',
|
username: 'admin',
|
||||||
password: '123456',
|
password: '123456',
|
||||||
code: '',
|
code: '',
|
||||||
uuid: '',
|
uuid: ''
|
||||||
} as LoginFormData,
|
} as LoginFormData,
|
||||||
loginRules: {
|
loginRules: {
|
||||||
username: [{ required: true, trigger: 'blur' }],
|
username: [{ required: true, trigger: 'blur' }],
|
||||||
password: [
|
password: [{ required: true, trigger: 'blur', validator: validatePassword }]
|
||||||
{ required: true, trigger: 'blur', validator: validatePassword },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
passwordType: 'password',
|
passwordType: 'password',
|
||||||
@@ -148,7 +146,7 @@ const state = reactive({
|
|||||||
capslockTooltipDisabled: true,
|
capslockTooltipDisabled: true,
|
||||||
otherQuery: {},
|
otherQuery: {},
|
||||||
clientHeight: document.documentElement.clientHeight,
|
clientHeight: document.documentElement.clientHeight,
|
||||||
showCopyright: true,
|
showCopyright: true
|
||||||
});
|
});
|
||||||
|
|
||||||
function validatePassword(rule: any, value: any, callback: any) {
|
function validatePassword(rule: any, value: any, callback: any) {
|
||||||
@@ -166,7 +164,7 @@ const {
|
|||||||
passwordType,
|
passwordType,
|
||||||
captchaBase64,
|
captchaBase64,
|
||||||
capslockTooltipDisabled,
|
capslockTooltipDisabled,
|
||||||
showCopyright,
|
showCopyright
|
||||||
} = toRefs(state);
|
} = toRefs(state);
|
||||||
|
|
||||||
function checkCapslock(e: any) {
|
function checkCapslock(e: any) {
|
||||||
@@ -225,7 +223,7 @@ watch(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate: true,
|
immediate: true
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user