From c077930b3043bf950c8b1c85707db69b2ee75c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=80=E5=9D=97=E5=85=AB?= <2523890936@qq.com> Date: Tue, 19 Aug 2025 18:50:48 +0800 Subject: [PATCH] bugfix --- f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue index 4eb0bbb..074bae8 100644 --- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue @@ -176,7 +176,11 @@ export default Vue.extend({ reqEnterpriseAuditInfoSearch({ url_link: window.location.href, }).then(res => { - if (res.data.data[0].length !== 0 || !sessionStorage.getItem('juese').includes('客户')) { + const dataList = res && res.data && res.data.data + const hasAuditInfo = Array.isArray(dataList) && dataList.length !== 0 + const roles = sessionStorage.getItem('juese') + const isCustomer = roles ? roles.includes('客户') : true + if (hasAuditInfo || !isCustomer) { this.publish_type = type this.sendProductVisible = true } else { -- 2.34.1