bugfix #11

Merged
charles merged 1 commits from main into prod 2025-08-19 18:51:39 +08:00

View File

@ -176,7 +176,11 @@ export default Vue.extend({
reqEnterpriseAuditInfoSearch({ reqEnterpriseAuditInfoSearch({
url_link: window.location.href, url_link: window.location.href,
}).then(res => { }).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.publish_type = type
this.sendProductVisible = true this.sendProductVisible = true
} else { } else {