|
|
@ -226,14 +226,16 @@ export default { |
|
|
|
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/publish`, |
|
|
|
params).then(() => { |
|
|
|
this.publishStatus = true |
|
|
|
this.$parent.getProjectStatus() |
|
|
|
this.msgSuccess('发布成功') |
|
|
|
}) |
|
|
|
}, |
|
|
|
stopPublishProject () { |
|
|
|
|
|
|
|
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/stop`, { 'key': this.projectKey }).then(res => { |
|
|
|
if (res.data) { |
|
|
|
this.msgSuccess('停止成功') |
|
|
|
|
|
|
|
this.$parent.getProjectStatus() |
|
|
|
this.getProjectStatus() |
|
|
|
} |
|
|
|
}) |
|
|
|