mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-03 16:06:13 +00:00
fix: 工单关闭后频繁请求
This commit is contained in:
@@ -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({
|
||||||
|
Reference in New Issue
Block a user