Pārlūkot izejas kodu

修复 ImagePostEdit.vue 图片上传的 url

reghao 1 gadu atpakaļ
vecāks
revīzija
59a464dfc8
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/views/post/ImagePostEdit.vue

+ 2 - 2
src/views/post/ImagePostEdit.vue

@@ -76,7 +76,7 @@ export default {
   name: 'ImagePostEdit',
   data() {
     return {
-      actionUrl: process.env.VUE_APP_OSS_URL,
+      actionUrl: null,
       /** *********************************************************************/
       imgHeaders: {
         Authorization: ''
@@ -108,7 +108,7 @@ export default {
     getPhotoChannelInfo().then(res => {
       if (res.code === 0) {
         const resData = res.data
-        this.imgOssUrl = resData.ossUrl
+        this.actionUrl = resData.ossUrl
         this.imgHeaders.Authorization = 'Bearer ' + resData.token
       } else {
         this.$notify({