Browse Source

基础工具修改

Koishi 3 năm trước cách đây
mục cha
commit
0f1c17a43f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();
   },
 
   /**