4642378b by 任超

feat:加载

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