|
@@ -34,7 +34,7 @@ export default {
|
|
*/
|
|
*/
|
|
showLoading(opt) {
|
|
showLoading(opt) {
|
|
let options = opt || {};
|
|
let options = opt || {};
|
|
- window?.loadingStatus = ElLoading.service({
|
|
|
|
|
|
+ loadingStatus = ElLoading.service({
|
|
target: options.target || 'body',
|
|
target: options.target || 'body',
|
|
body: (options.body == true || options.body == false) ? options.body : false,
|
|
body: (options.body == true || options.body == false) ? options.body : false,
|
|
fullscreen: (options.fullscreen == true || options.fullscreen == false) ? options.fullscreen : true,
|
|
fullscreen: (options.fullscreen == true || options.fullscreen == false) ? options.fullscreen : true,
|
|
@@ -77,7 +77,7 @@ export default {
|
|
* 关闭loading
|
|
* 关闭loading
|
|
*/
|
|
*/
|
|
closeLoading() {
|
|
closeLoading() {
|
|
- window?.loadingStatus?.close();
|
|
|
|
|
|
+ loadingStatus.close();
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|