diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts index e424557..f774fc0 100644 --- a/src/i18n/lang/cn.ts +++ b/src/i18n/lang/cn.ts @@ -28,7 +28,8 @@ export default { operation: '操作', //版本更新 updatePrompt: '更新提示', - Tip1: '检测到有新版本,请更新!', + Tip1: '请更新!', + Tip3: '检测到有新版本为', restart: '重启', Tip2: '更新成功,是否重启?', //服务器设置 diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 963a457..267023c 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -40,7 +40,8 @@ export default { Pi_tip19: 'Only one item can be selected to modify the quantity', //版本更新 updatePrompt: 'Update tips', - Tip1: 'New version detected, please update!', + Tip1: 'please update!', + Tip3: 'The new version detected is', restart: 'Restart', Tip2: 'Update succeeded. Are you sure to restart?', //服务器设置 diff --git a/src/pages/login/login/index.vue b/src/pages/login/login/index.vue index 5a243bf..4ebbc31 100644 --- a/src/pages/login/login/index.vue +++ b/src/pages/login/login/index.vue @@ -150,14 +150,14 @@ export default class LoginPage extends BasePage { console.log('image', this.image); console.log('Version////', this.Version); } - Version = '1.0.6'; + Version = '1.0.7'; async update() { try { await session.QueryVersion(server.serverAddress); if (this.Version < session.Version) { // 版本更新提示 uni.showModal({ - content: this.$t('message.Tip1') as string, + content: (this.$t('message.Tip3') + session.Version + ',' + this.$t('message.Tip1')) as string, confirmText: this.$t('message.workArea_Confirm') as string, cancelText: this.$t('message.Cancel') as string, showCancel: false,