[update 系统] i18n抽离单独js文件

This commit is contained in:
danshihao
2024-07-10 20:16:04 +08:00
parent 2fbe21e796
commit cd05097be0
8 changed files with 62 additions and 37 deletions
+4 -4
View File
@@ -172,7 +172,7 @@ export const ConfigurableTableMixin = {
if (this.operationList && this.operationList.length > this.operateMaxNum + 1) {
width += this.getTextWith(this.operationList[0].text) + this.getTextWith(this.$t('more'))
} else if (this.operationList && this.operationList.length > 1) {
width += this.getTextWith(this.operationList[0].text) + this.getTextWith(this.operationList[1].text)
width += this.getTextWith(this.operationList[0].text) + this.getTextWith(this.operationList[1].text)
console.log(width)
}
const operateColumn = JSON.parse(JSON.stringify(this.operateColumn))
@@ -322,9 +322,9 @@ export const ConfigurableTableMixin = {
const token = Vue.ls.get(ACCESS_TOKEN)
if (token && data.message.includes('Token失效')) {
this.error({
title: '登录已过期',
content: '很抱歉,登录已过期,请重新登录',
okText: '重新登录',
title: this.$t('loginExpired'),
content: this.$t('loginExpiredMessage'),
okText: this.$t('logInAgain'),
mask: false,
onOk: () => {
store.dispatch('Logout').then(() => {