From e87012567c674cd69f7a8f87df7202eac60a8208 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期二, 11 六月 2024 22:28:14 +0800 Subject: [PATCH] update --- src/components/scTable/index.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/scTable/index.vue b/src/components/scTable/index.vue index 737b797..6416bf1 100644 --- a/src/components/scTable/index.vue +++ b/src/components/scTable/index.vue @@ -4,16 +4,16 @@ * @Author: sakuya * @Date: 2021骞�11鏈�29鏃�21:51:15 * @LastEditors: Sneed - * @LastEditTime: 2024-05-12 13:00:03 + * @LastEditTime: 2024-05-12 13:35:21 --> <template> <div class="scTable" :style="{ 'height': _height }" ref="scTableMain" v-loading="loading"> <div class="scTable-table" :style="{ 'height': _table_height }"> <el-table v-bind="$attrs" :data="tableData" :row-key="rowKey" :key="toggleIndex" ref="scTable" - :height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" :stripe="config.stripe" - :summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" @sort-change="sortChange" - @filter-change="filterChange"> + :height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" + :stripe="config.stripe" :summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" + @sort-change="sortChange" @filter-change="filterChange"> <slot></slot> <template v-for="(item, index) in userColumn" :key="index"> <el-table-column v-if="!item.hide" :column-key="item.prop" :label="item.label" :prop="item.prop" @@ -200,7 +200,7 @@ var res = await this.apiObj.get(reqData); } catch (error) { this.loading = false; - this.emptyText = error.statusText; + this.emptyText = error?.statusText; return false; } try { -- Gitblit v1.9.3