修改禅道已知bug

This commit is contained in:
qq787203167
2022-07-02 16:48:21 +08:00
parent ddd925097c
commit 5df5594107
@@ -511,17 +511,14 @@
}, },
mounted() { mounted() {
this.GetgetLoginUserType() this.GetgetLoginUserType()
this.time = setInterval(() => { setTimeout(() => {
if (this.currentPersonRole == "dre"){ if (this.currentPersonRole == 'dre') {
this.handlePreservation() this.handlePreservation()
} }
}, 10000) }, 10000)
this.paramsManifest = JSON.parse(localStorage.getItem('paramsManifest')) this.paramsManifest = JSON.parse(localStorage.getItem('paramsManifest'))
document.title = `${this.paramsManifest.title}-` + this.$t('ParameteItemCollectionList') document.title = `${this.paramsManifest.title}-` + this.$t('ParameteItemCollectionList')
}, },
beforeDestroy() {
clearInterval(this.time)
},
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
handleCancelRoleSwitching() { handleCancelRoleSwitching() {
@@ -1062,6 +1059,11 @@
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
this.textLoading = false this.textLoading = false
} }
setTimeout(() => {
if (this.currentPersonRole == 'dre') {
this.handlePreservation()
}
}, 10000)
} else { } else {
if (num && num == 1) { if (num && num == 1) {
_this.$message.warning(_this.$t('operationFailed')) _this.$message.warning(_this.$t('operationFailed'))