fix: 工单关闭后频繁请求

This commit is contained in:
feng626
2022-03-16 18:23:44 +08:00
parent e62e79e929
commit fdbde9d010

View File

@@ -74,7 +74,7 @@ export default {
}, },
created() { created() {
if (this.object.state !== 'open') { if (this.object.state !== 'open' && this.object.status !== 'closed') {
this.init() this.init()
} }
}, },
@@ -83,6 +83,7 @@ export default {
}, },
methods: { methods: {
init() { init() {
console.log('this.object.state', this.object)
this.loading = true this.loading = true
const url = `/api/v1/tickets/tickets/${this.object.id}/session/` const url = `/api/v1/tickets/tickets/${this.object.id}/session/`
this.$axios({ this.$axios({