Ver código fonte

修改上传图片地址

xiaomin 4 anos atrás
pai
commit
5f0a2e22c6
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      src/views/journalism/journalism.vue

+ 4 - 2
src/views/journalism/journalism.vue

@@ -95,7 +95,7 @@
             <el-form-item label="新闻封面">
               <el-upload
                 ref='upload'
-                action="http://192.168.1.199:18083/newsmess/save_news"
+                action="http://192.168.1.199:18083/app/photo"
                 list-type="picture-card"
                 :on-preview="handlePreview"
                 :on-remove="handleRemove"
@@ -311,7 +311,8 @@ export default {
           photo: '',
           quillUpdateImg: false,
           // serverUrl: '',
-          serverUrl: 'http://localhost:8088/api/app/upload',  // 这里写你要上传的图片服务器地址
+          serverUrl: 'http://192.168.1.199:30001/api/app/upload',
+          // 这里写你要上传的图片服务器地址
           header: {Authorization: 'Bearer ' + sessionStorage.token},  //有的图片服务器要求请求头需要有token之类的参数,写在这里
           detailContent: '', // 富文本内容
           editorOption: {
@@ -586,6 +587,7 @@ export default {
       console.log(file);
     },
     handleSuccess (a) {
+      // console.log(this.formList.photo)
       this.formList.photo = a.raw;
       if(a !== '') {
         this.flag = 1