YY 2 年之前
父节点
当前提交
404a1081f3
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 1
      src/components/account/parts/user-project.vue
  2. 2 1
      src/components/account/parts/user-studio.vue

+ 2 - 1
src/components/account/parts/user-project.vue

@@ -441,7 +441,8 @@ const delCase = (e: { id: string }) => {
   form.value.case = cases;
 };
 // 数据选择
-const dataChange = (model: string, value: any) => {
+const dataChange = (e: { model: string; value: any }) => {
+  const { model, value } = e;
   if (model == 'fields') {
     if (value.length > 2) ElMessage({ type: 'error', message: '数据过多,请重新选择' });
   }

+ 2 - 1
src/components/account/parts/user-studio.vue

@@ -377,7 +377,8 @@ const delCase = (e: { id: string }) => {
   form.value.case = cases;
 };
 // 数据选择
-const dataChange = (model: string, value: any) => {
+const dataChange = (e: { model: string; value: any }) => {
+  const { model, value } = e;
   if (model == 'fields') {
     if (value.length > 2) ElMessage({ type: 'error', message: '数据过多,请重新选择' });
   }