zs hai 1 ano
pai
achega
6706e3fa72
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;