refactor: 登录表单数据类型声明

This commit is contained in:
郝先瑞 committed 2022-03-20 23:44:39 +08:00
1 parent e5e2aea788
commit c77e8878fa
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -119,6 +119,7 @@ import useStore from "@/store";
// API依赖
import { getCaptcha } from "@/api/login";
import { useRoute } from "vue-router";
import { LoginFormData } from "@/types";
const { user } = useStore();
const route = useRoute();
@@ -132,7 +133,7 @@ const state = reactive({
password: "123456",
code: "",
uuid: "",
},
} as LoginFormData,
loginRules: {
username: [{ required: true, trigger: "blur" }],
password: [