style: 代码格式化

Former-commit-id: f44209861939f6481b37e46da09c10fac0804336
This commit is contained in:
郝先瑞
2022-05-18 23:54:09 +08:00
parent a2e0935c9d
commit 50c5c1ad2f
2 changed files with 5 additions and 8 deletions

View File

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

View File

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