This commit is contained in:
yunkexin 2025-10-20 11:43:34 +08:00
parent 45c7476128
commit 5df33459d0

View File

@ -55,10 +55,19 @@
// beforeCreate() KO
// beforeMount() mounted() OK
created() {
//wyw
// this.isBtnRefuseDisable = (this.__page__.options.refuseApi == null || this.__page__.options.refuseApi ==
// undefined || this.__page__.options.refuseApi == 'undefined') ? true : false
this.localIsBtnRefuseDisable = (this.$route.query.refuseApi == null || this.$route.query.refuseApi == undefined || this.$route.query.refuseApi == 'undefined') ? true : false
if (this.refuseApi) {
this.localIsBtnRefuseDisable = false
} else {
const pages = getCurrentPages()
const currentPage = pages[pages.length - 1]
const query = currentPage.options || {}
this.localIsBtnRefuseDisable = !(query.refuseApi && query.refuseApi !== 'undefined')
}
},
mounted() {
if (this.$route && this.$route.query) {
this.localIsBtnRefuseDisable = !(this.$route.query.refuseApi && this.$route.query.refuseApi !== 'undefined')
}
},
watch: {
isBtnRefuseDisable(newValue) {