zs 1 year ago
parent
commit
6706e3fa72
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/spec/index.vue

+ 5 - 0
src/views/spec/index.vue

@@ -140,6 +140,11 @@ const toEdit = async (data: any) => {
   form.value = data;
   dialog.value = { title: '信息管理', show: true, type: '1' };
 };
+// 上传图片
+const onUpload = (e: { model: string; value: Array<[]> }) => {
+  const { model, value } = e;
+  form.value[model] = value;
+};
 // 提交保存
 const toSave = async (data: any) => {
   let res: IQueryResult;