| | |
| | | url: '/sub_pages/customer/shop/shop?id=' + (item.id || '') |
| | | }) |
| | | }, |
| | | clearFollow(item) { |
| | | async clearFollow(item) { |
| | | this.$message.showLoading() |
| | | // var res; |
| | | // if(type){ |
| | | // res = await this.$http.request('post',`/api/follow/add`,{ |
| | | // data:{ |
| | | // supplierId:this.dto.supplierId || this.dto.id |
| | | // } |
| | | // }) |
| | | // }else{ |
| | | // res = await this.$http.request('get',`/api/follow/add`,{ |
| | | // data:{ |
| | | // supplierId:this.dto.supplierId || this.dto.id |
| | | // } |
| | | // }) |
| | | // } |
| | | const {code} = await this.$http.request('get', `/api/follow/delete`, { |
| | | params: { |
| | | supplierId: item.id |
| | | } |
| | | }) |
| | | this.$message.hideLoading() |
| | | if (code === 0) { |
| | | //删除list里的本元素 |