From 5df33459d07deb9050c3817b7cfcb17fb29a2586 Mon Sep 17 00:00:00 2001 From: yunkexin <760754045@qq.com> Date: Mon, 20 Oct 2025 11:43:34 +0800 Subject: [PATCH] 1 --- components/custom/check-action.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/components/custom/check-action.vue b/components/custom/check-action.vue index fce9ad8..58e44b1 100644 --- a/components/custom/check-action.vue +++ b/components/custom/check-action.vue @@ -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) {