|
@@ -4,9 +4,7 @@ import { message } from "@/utils/message";
|
|
|
import type { FormInstance } from "element-plus";
|
|
|
import { cloneDeep } from "@pureadmin/utils";
|
|
|
import * as $api from "@/api/auth/index";
|
|
|
-import ReQrcode from "@/components/ReQrcode/src";
|
|
|
|
|
|
-const title = "";
|
|
|
defineOptions({ name: "templateEdit" });
|
|
|
const isDetail = ref(false);
|
|
|
const formRef = ref<FormInstance>();
|
|
@@ -14,19 +12,13 @@ const formRef = ref<FormInstance>();
|
|
|
const initData = {
|
|
|
code: undefined
|
|
|
};
|
|
|
-
|
|
|
-// 表单校验规则
|
|
|
-const formRules = reactive({
|
|
|
- code: [{ required : true, message: '验证码不能为空'}]
|
|
|
-});
|
|
|
-
|
|
|
// 页面数据
|
|
|
const pageData: any = reactive({
|
|
|
code: "",
|
|
|
// 表单数据
|
|
|
formData: initData,
|
|
|
formRules: {
|
|
|
- code: [{ required: true, message: "请选择验证码", trigger: "blur" }]
|
|
|
+ code: [{ required: true, message: "验证码不能为空", trigger: "blur" }]
|
|
|
}
|
|
|
});
|
|
|
// 暴露给父级调用
|