47c26b3d by 任超

style:加载组件

1 parent b233bab3
......@@ -3,12 +3,12 @@ import Loading from '@/components/loading/index.js';
let loading
// loading开始 方法
function startLoading (target, loadingText = '正在加载中...') {
function startLoading (target = 'body', loadingText = '正在加载中...') {
loading = Loading.service({
text: loadingText,
spinner: 'el-icon-loading',
background: 'rgba(255, 255, 255, 0.5)',
target: target ? '#' + target : 'body'
target: '#' + target
})
}
......