[feat]增加生产环境中前端代码更新版本后用户端自动升级为最新前端版本

This commit is contained in:
周继风
2024-06-24 22:35:17 +08:00
parent b6c013dad7
commit d7edbde434
5 changed files with 65 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
import { nextTick } from 'vue';
import '/@/theme/loading.scss';
import { showUpgrade } from "/@/utils/upgrade";
/**
* 页面全局 Loading
@@ -9,6 +11,8 @@ import '/@/theme/loading.scss';
export const NextLoading = {
// 创建 loading
start: () => {
// 显示升级提示
showUpgrade()
const bodys: Element = document.body;
const div = <HTMLElement>document.createElement('div');
div.setAttribute('class', 'loading-next');