Browse Source

修改模板上传图片

木星 7 months ago
parent
commit
21a6e954d0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/Template/TemplateManage.vue

+ 2 - 2
src/views/Template/TemplateManage.vue

@@ -148,7 +148,7 @@ const schema = reactive<FormSchema[]>([
148 148
       rules: [required()]
149 149
     },
150 150
     componentProps: {
151
-      action: PATH_URL + '/zone/template/uploadImg',
151
+      action: PATH_URL + '/resource/ossUpload',
152 152
       headers: headers,
153 153
       showFileList: false,
154 154
       onSuccess: async (_response, uploadFile) => {
@@ -244,7 +244,7 @@ const edittab = async (data: TableSlotDefault) => {
244 244
   formData.templateFileName = data.row.templateFileName
245 245
   formData.templateFilePath = data.row.templateFilePath
246 246
   formData.thumbnail = data.row.thumbnail
247
-  imageUrl.value = PATH_URL + data.row.thumbnail
247
+  imageUrl.value = data.row.thumbnail
248 248
   formData.zoneId = data.row.zoneId
249 249
   schema[2].componentProps.fileList = [
250 250
     {