lsc 2 years ago
parent
commit
4e6865416f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      js/Office/Word/Word.js

+ 4 - 0
js/Office/Word/Word.js

@@ -656,6 +656,8 @@ U.MD.O.W.getWork = async function (cid, s, task, t, uid) {
                 // setTimeout(() => {
                 //     U.MD.O.W.wordDirectory();
                 // }, 100)
+            }else{
+                resolve(U.MD.O.W.getfile())
             }
         }, [], { "type": "GET", "withCredentials": true });
     });
@@ -673,6 +675,8 @@ U.MD.O.W.getWorkS = async function (cid, s, task, t, uid) {
                     newfile: true
                 }
                 resolve(a);
+            }else{
+                resolve(U.MD.O.W.getfile())
             }
         }, [], { "type": "GET", "withCredentials": true });
     });