diff --git a/snowy-admin-web/src/utils/loading.js b/snowy-admin-web/src/utils/loading.js index 95936df3..00fe71ac 100644 --- a/snowy-admin-web/src/utils/loading.js +++ b/snowy-admin-web/src/utils/loading.js @@ -3,6 +3,8 @@ * @method start 创建 loading * @method done 移除 loading */ +import sysConfig from '@/config/index' + export const NextLoading = { // 创建 loading start: () => { @@ -11,14 +13,16 @@ export const NextLoading = { const body = document.body const div = document.createElement('div') div.setAttribute('class', 'admin-ui') - div.innerHTML = ` + const sysName = sysConfig.SYS_BASE_CONFIG.SNOWY_SYS_NAME + const htmlBefore = `
-
Snowy
-
` +
` + const htmlAfter = `
` + div.innerHTML = htmlBefore + sysName + htmlAfter body.insertBefore(div, body.childNodes[0]) window.nextLoading = true },