Browse Source

处理留言板图片上传问题

wangcz 7 years ago
parent
commit
ce37f6d504
1 changed files with 3 additions and 1 deletions
  1. 3 1
      components/default/MessageBoard.vue

+ 3 - 1
components/default/MessageBoard.vue

@@ -177,7 +177,9 @@
     },
     },
     methods: {
     methods: {
       listenUpload: function (url, index) {
       listenUpload: function (url, index) {
-        this.dialogImageUrl[index] = url
+        let imgUrl = {}
+        imgUrl.img = url.url
+        this.dialogImageUrl[index] = imgUrl
       },
       },
       listenPage (page) {
       listenPage (page) {
         this.pageParams.page = page
         this.pageParams.page = page