【更新】前端stable-代码格式调整

pull/150/head
小诺 2023-08-05 22:48:42 +08:00 committed by 俞宝山
parent 064a7bc127
commit 88a1ca21bd
1 changed files with 3 additions and 3 deletions

View File

@ -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