소스 검색

基础工具修改

Koishi 3 년 전
부모
커밋
0f1c17a43f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/tools/basicTool.js

+ 2 - 2
src/tools/basicTool.js

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