[feat]增加生产环境中前端代码更新版本后用户端自动升级为最新前端版本
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user