mirror of https://gitee.com/xiaonuobase/snowy
parent
c72376f58b
commit
ad3e8a6366
|
@ -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 = `
|
||||
<div class="app-loading">
|
||||
<div class="app-loading-logo">
|
||||
<img src="/img/logo.png"/>
|
||||
</div>
|
||||
<div><span class="dot dot-spin"><i></i><i></i><i></i><i></i></span></div>
|
||||
<div class="app-loading-title">Snowy</div>
|
||||
</div>`
|
||||
<div class="app-loading-title"> `
|
||||
const htmlAfter = ` </div></div>`
|
||||
div.innerHTML = htmlBefore + sysName + htmlAfter
|
||||
body.insertBefore(div, body.childNodes[0])
|
||||
window.nextLoading = true
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue