From 88a1ca21bd943f24565b6e354df4bb302f81ceab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Sat, 5 Aug 2023 22:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E5=89=8D?= =?UTF-8?q?=E7=AB=AFstable-=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/components/Table/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snowy-admin-web/src/components/Table/index.vue b/snowy-admin-web/src/components/Table/index.vue index be525b2a..67750e81 100644 --- a/snowy-admin-web/src/components/Table/index.vue +++ b/snowy-admin-web/src/components/Table/index.vue @@ -6,7 +6,7 @@ import './index.less' import i18n from '@/locales' - const {t} = i18n.global + const { t } = i18n.global export default { name: 'STable', @@ -158,9 +158,9 @@ false this.needTotalList = this.initTotalList(this.columns) this.loadData() - this.columnsSetting = this.columns.map(c => { + this.columnsSetting = this.columns.map((c) => { const tt = c.title - if (typeof tt === "string") { + if (typeof tt === 'string') { c.title = () => t(tt) } return c