4642378b by 任超

feat:加载

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