Resolve build error for abort request feature
This commit is contained in:
@@ -52,6 +52,8 @@ export default {
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.setDefaultValues()
|
||||
|
||||
this.abortRequests.forEach((cancel) => {
|
||||
cancel()
|
||||
})
|
||||
@@ -82,13 +84,7 @@ export default {
|
||||
this.processing = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.setDefaultValues()
|
||||
},
|
||||
|
||||
methods: {
|
||||
setDefaultValues () {
|
||||
this.processing = false
|
||||
this.automationScripts = []
|
||||
|
||||
@@ -706,6 +706,9 @@ export default {
|
||||
|
||||
beforeDestroy () {
|
||||
this.setDefaultValues()
|
||||
this.abortRequests.forEach((cancel) => {
|
||||
cancel()
|
||||
})
|
||||
},
|
||||
|
||||
beforeRouteUpdate (to, from, next) {
|
||||
@@ -716,12 +719,6 @@ export default {
|
||||
this.checkUnsavedModule(next)
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.abortRequests.forEach((cancel) => {
|
||||
cancel()
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions({
|
||||
findModuleByID: 'module/findByID',
|
||||
|
||||
@@ -231,6 +231,8 @@ export default {
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.setDefaultValues()
|
||||
|
||||
this.abortRequests.forEach((cancel) => {
|
||||
cancel()
|
||||
})
|
||||
@@ -241,10 +243,6 @@ export default {
|
||||
this.record = new compose.Record(this.module, { values: this.values })
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.setDefaultValues()
|
||||
},
|
||||
|
||||
methods: {
|
||||
createBlocks () {
|
||||
this.fields.forEach(f => {
|
||||
|
||||
@@ -1063,6 +1063,8 @@ export default {
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.setDefaultValues()
|
||||
|
||||
this.abortRequests.forEach((cancel) => {
|
||||
cancel()
|
||||
})
|
||||
@@ -1072,10 +1074,6 @@ export default {
|
||||
this.fetchRoles()
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.setDefaultValues()
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions({
|
||||
findPageByID: 'page/findByID',
|
||||
|
||||
Reference in New Issue
Block a user