From cbb8d3e539a842958da8bba537b0f169218b2cca Mon Sep 17 00:00:00 2001 From: limingyu Date: Wed, 8 May 2024 16:09:52 +0800 Subject: [PATCH] =?UTF-8?q?15491=20=E6=9F=A5=E7=9C=8B=E7=9B=91=E7=AE=A1?= =?UTF-8?q?=E7=AB=AF=E6=95=B0=E6=8D=AE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/textLibraryInfo.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/threeSystems/safetyProductionResponsibilitySystem/components/textLibraryInfo.vue b/src/views/threeSystems/safetyProductionResponsibilitySystem/components/textLibraryInfo.vue index 1c4beb9..e87b3b9 100644 --- a/src/views/threeSystems/safetyProductionResponsibilitySystem/components/textLibraryInfo.vue +++ b/src/views/threeSystems/safetyProductionResponsibilitySystem/components/textLibraryInfo.vue @@ -95,7 +95,12 @@ export default { this.loading = false this.form = data.data this.form.FILE = [] - this.remoteControl.keyOne = !(this.form.CATEGORY_LIST[0].CATEGORY_ID === '7158f688d0f34054a28a9275139298df') + // CATEGORY_LIST为空的时候,下方的判断会报错,所以当CATEGORY_LIST为空时,keyOne为true + if (this.form.CATEGORY_LIST.length > 0) { + this.remoteControl.keyOne = !(this.form.CATEGORY_LIST[0].CATEGORY_ID === '7158f688d0f34054a28a9275139298df') + } else { + this.remoteControl.keyOne = true + } }).catch((e) => { this.$message.error(e) this.loading = false