发表于: 2020-03-11 22:19:31
1 1388
今天完成的事情:
1.推进任务
明天计划的事情:
1.推进任务
遇到的问题和收获:
online() {
console.log('submit1!');
this.article.status = 2
this.$http({
method: 'post',
url: '/api/a/u/article',
data: this.$qs.stringify(this.article)
}).then(res => {
console.log(res);
if (res.data.code === 0) {
console.log(res);
this.$message.success('操作成功')
this.$router.push({
path: '/home/admin'
})
}
})
还是拆成两个组件吧,不然挺麻烦的。点击新增后一个,编辑后一个。
现在是做成的一个组件。
评论