发表于: 2020-02-23 22:17:36

1 1896



今天完成的事情:

1.推进任务


明天计划的事情:

1.推进任务


遇到的问题和收获:

1.

showEdit(row) {
   console.log(row);
   this.editInfo.title = row.title
   this.editInfo.status = row.status
   this.editInfo.img = row.img
   this.editInfo.content = row.content
   this.editInfo.url = row.url
   this.editInfo.industry = row.industry
   this.editInfo.createAt = row.createAt
   this.editInfo.type = row.type

   this.$router.push({
       path: '/home/details/'
   })

   // const {data: res} = await this.$http.put('/api/a/u/article/' + row.id, this.editInfo)
   this.$http({
       method: 'put',
       url: '/api/a/u/article/' + row.id,
       data: this.$qs.stringify(this.editInfo)
   }).then(res => {
       // console.log(res);
       if (res.data.code === 0) {
           console.log(res);
           this.$http.get('/api/a/article'+row.id,this.editInfo)
           // this.$router.push({
           //     path: '/home/details'
           // })
       }
   })


好像搞错了什么。编辑接口的位置用得不对。

没理清这个业务逻辑 = =





返回列表 返回列表
评论

    分享到