浏览代码

基础工具修改

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();
   },
 
   /**