zhou zhou
9 小时以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
rsf-design/src/utils/sys/upgrade.js
@@ -1,5 +1,6 @@
import { upgradeLogList } from '@/mock/upgrade/changeLog'
import { ElNotification } from 'element-plus'
import { $t } from '@/locales'
import { useUserStore } from '@/store/modules/user'
import { StorageConfig } from '@/utils/storage/storage-config'
class VersionManager {
@@ -78,13 +79,13 @@
    const { title: content } = upgradeLogList.value[0]
    const messageParts = [
      `<p style="color: var(--art-gray-800) !important; padding-bottom: 5px;">`,
      `系统已升级到 ${StorageConfig.CURRENT_VERSION} 版本,此次更新带来了以下改进:`,
      $t('message.systemUpgradeIntro', { version: StorageConfig.CURRENT_VERSION }),
      `</p>`,
      content
    ]
    if (requireReLogin) {
      messageParts.push(
        `<p style="color: var(--theme-color); padding-top: 5px;">升级完成,请重新登录后继续使用。</p>`
        `<p style="color: var(--theme-color); padding-top: 5px;">${$t('message.systemUpgradeRelogin')}</p>`
      )
    }
    return messageParts.join('')
@@ -94,7 +95,7 @@
   */
  showUpgradeNotification(message) {
    ElNotification({
      title: '系统升级公告',
      title: $t('message.systemUpgradeTitle'),
      message,
      duration: 0,
      type: 'success',