refactor: 项目简化

Former-commit-id: 73a4a6c9c41e013928e6205dd7c078d0e955f487
This commit is contained in:
horizons
2022-09-13 07:44:55 +08:00
parent 90c6059f3f
commit 81d7880ebc
64 changed files with 204 additions and 5279 deletions

View File

@@ -140,7 +140,7 @@ import useStore from '@/store';
// API依赖
import { getCaptcha } from '@/api/login';
import { useRoute } from 'vue-router';
import { LoginFormData } from '@/types/api/system/login';
import { LoginFormData } from '@/types/api/login';
const { user } = useStore();
const route = useRoute();
@@ -207,6 +207,9 @@ function showPwd() {
});
}
/**
* login
*/
function handleLogin() {
loginFormRef.value.validate((valid: boolean) => {
if (valid) {
@@ -219,6 +222,8 @@ function handleLogin() {
})
.catch(() => {
state.loading = false;
// 生成验证码
handleCaptchaGenerate();
});
} else {