在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/HTML/ element-ui 文件上傳成功之后的回調(diào)問(wèn)題(控制臺(tái)報(bào)錯(cuò))

element-ui 文件上傳成功之后的回調(diào)問(wèn)題(控制臺(tái)報(bào)錯(cuò))

// 文件上傳成功時(shí)的鉤子
    handleSuccess (response, file, fileList) {
      console.log(response, file, fileList)
      let fj = [],
      this.upload.fj = fj
      this.upload.fj.push({name:response.name, url:response.url})
      console.log(this.upload)
    },

upload是在data里定義的,我調(diào)用文件上傳成功之后的鉤子控制臺(tái)會(huì)報(bào)錯(cuò),說(shuō)this那一塊有問(wèn)題,我也不知道是什么問(wèn)題,現(xiàn)在的需求就是當(dāng)文件上傳成功之后把文件的名字和地址放在一個(gè)數(shù)組里然后傳給后端,有哪位大神能幫忙修改一下文件上傳成功之后的回調(diào)函數(shù)嗎

控制臺(tái)報(bào)錯(cuò)信息:

index.js?bed3:167 ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/page/int/intApply.vue
Module build failed: SyntaxError: Unexpected token (592:6)

  590 |       console.log(response, file, fileList)
  591 |       let fj = [],
> 592 |       this.upload.fj = fj
      |       ^
  593 |       this.upload.fj.push({name:response.name, url:response.url})
  594 |       console.log(this.upload)
  595 |     },
回答
編輯回答
凹凸曼

貼一下報(bào)錯(cuò)信息?

519行結(jié)尾是個(gè),

2017年11月28日 19:57