From d68c5a3ef7025d67a2d92ea3aa84f73ec77ddd5f Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期一, 03 三月 2025 16:36:50 +0800 Subject: [PATCH] 文件下载失败统一拦截 --- src/views/structural/capabilityAndLaboratory/capability/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/structural/capabilityAndLaboratory/capability/index.vue b/src/views/structural/capabilityAndLaboratory/capability/index.vue index 3b7e31d..11d2981 100644 --- a/src/views/structural/capabilityAndLaboratory/capability/index.vue +++ b/src/views/structural/capabilityAndLaboratory/capability/index.vue @@ -45,13 +45,13 @@ </el-form> <!-- 妫�楠岄」鐩弬鏁拌〃鏍�--> <div class="table" v-if="radio===0"> - <lims-table :tableData="tableData" :column="column" + <lims-table :tableData="tableData" :column="column" key="tableData" @pagination="pagination" :height="'calc(100vh - 290px)'" :page="page" :tableLoading="tableLoading"></lims-table> </div> <!-- 妫�楠屽璞¤〃鏍�--> <div class="table" v-if="radio===1"> - <lims-table :tableData="testObjectTableData" :column="testObjectColumn" + <lims-table :tableData="testObjectTableData" :column="testObjectColumn" key="testObjectTableData" @pagination="pagination" :height="'calc(100vh - 290px)'" :page="testObjectPage" :tableLoading="tableLoading"></lims-table> </div> @@ -385,8 +385,8 @@ this.$refs.upload.clearFiles() this.uploadDia = false this.uploading = false - if (response.code === 201) { - this.$message.error(response.message) + if (response.code !== 200) { + this.$message.error(response.msg) return } this.$message.success('涓婁紶鎴愬姛') -- Gitblit v1.9.3