mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 06:34:13 +00:00
fix: 工单关闭后频繁请求
This commit is contained in:
@@ -74,7 +74,7 @@ export default {
|
||||
},
|
||||
|
||||
created() {
|
||||
if (this.object.state !== 'open') {
|
||||
if (this.object.state !== 'open' && this.object.status !== 'closed') {
|
||||
this.init()
|
||||
}
|
||||
},
|
||||
@@ -83,6 +83,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
console.log('this.object.state', this.object)
|
||||
this.loading = true
|
||||
const url = `/api/v1/tickets/tickets/${this.object.id}/session/`
|
||||
this.$axios({
|
||||
|
Reference in New Issue
Block a user