YY 2 éve
szülő
commit
404a1081f3

+ 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: '数据过多,请重新选择' });
   }