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