mirror of
https://gitee.com/lyt-top/vue-next-admin
synced 2026-07-05 05:13:18 +08:00
'admin-21.04.01:修复雪花屏loading不同步主题颜色的问题'
This commit is contained in:
@ -1,7 +1,16 @@
|
||||
import { nextTick } from 'vue';
|
||||
import loadingCss from '/@/theme/loading.scss';
|
||||
|
||||
// 定义方法
|
||||
export const NextLoading = {
|
||||
// 载入 css
|
||||
setCss: () => {
|
||||
let link = document.createElement('link');
|
||||
link.rel = 'stylesheet';
|
||||
link.href = loadingCss;
|
||||
link.crossOrigin = 'anonymous';
|
||||
document.getElementsByTagName('head')[0].appendChild(link);
|
||||
},
|
||||
// 创建 loading
|
||||
start: () => {
|
||||
const bodys: any = document.body;
|
||||
|
||||
Reference in New Issue
Block a user