Преглед изворни кода

上传图片更改 savePathType:web

chenrui пре 4 година
родитељ
комит
e70fb54d0b
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/components/UploadFile/index.vue
  2. 1 1
      src/components/WEeditor/editor.vue

+ 1 - 1
src/components/UploadFile/index.vue

@@ -65,7 +65,7 @@ export default {
       type: Object,
       default: function () {
         return {
-          savePathType: 'ali' // 存储类型 local 服务器本地,ali 阿里云
+          savePathType: 'web' // 存储类型 local 服务器本地,ali 阿里云, web
         }
       }
     }

+ 1 - 1
src/components/WEeditor/editor.vue

@@ -93,7 +93,7 @@
       this.editor.customConfig.uploadImgServer = process.env.VUE_APP_API_BASE_URL + '/upload'
       this.editor.customConfig.uploadFileName = 'file'
       this.editor.customConfig.uploadImgParams = {
-          savePathType: 'ali'
+          savePathType: 'web'
       }
       this.editor.customConfig.uploadImgHooks = {
           before: function (xhr, editor, files) {