Browse Source

删除多余代码

liu_lake 6 months ago
parent
commit
26312f1d62

+ 1 - 11
agent-ui/src/views/welcome/bind.vue

@@ -13,18 +13,13 @@ 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" }]
   }
 });
 // 暴露给父级调用
@@ -38,11 +33,6 @@ const open = (data: any, dataSource: any, mode: string) => {
   isDetail.value = false;
   pageData.dialogVisible = true;
 };
-// 关闭弹窗
-const handleClose = () => {
-  pageData.dialogVisible = false;
-  emits("close");
-};
 // 确定并关闭弹窗
 const handleConfirm = () => {
   formRef.value!.validate((isValid: boolean) => {

+ 1 - 1
agent-ui/src/views/welcome/index.vue

@@ -22,7 +22,7 @@ onMounted(() => {
         >Always</el-card
       >
     </div>
-<!--    <bind ref="bindRef" />-->
+    <bind ref="bindRef" />
   </div>
 </template>
 

+ 1 - 9
merchant-ui/src/views/welcome/bind.vue

@@ -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" }]
   }
 });
 // 暴露给父级调用