qinzhipeng_v 5 年之前
父節點
當前提交
61fc0247e0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/Platform/useCasePage.vue

+ 2 - 1
src/views/Platform/useCasePage.vue

@@ -618,7 +618,8 @@ export default {
       formData_s.append('file', f)
       axios.post('http://star.xiaojukeji.com/upload/img.node', formData_s, { withCredentials: false, headers: { 'Content-Type': 'multipart/form-data' }}).then(res => {
         if (res) {
-          this.grid_xmind.push({ 'name': f.name, 'url': 'http:' })
+          console.log(typeof (this.grid_xmind))
+          this.grid_xmind.push({ 'name': f.name, 'url': 'http:' + res.data.url })
           var xmind_code = {
             id: this.startId,
             xmindUrl: JSON.stringify(this.grid_xmind),