refactor: 登录表单数据类型声明
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user