lsc 2 年 前
コミット
b4eebbf1df
1 ファイル変更4 行追加4 行削除
  1. 4 4
      js/Desktop/DeskTop.js

+ 4 - 4
js/Desktop/DeskTop.js

@@ -2895,17 +2895,17 @@ U.MD.D.I.getEditorContent = function (iframe) {
     });
 }
 
-U.MD.D.I.getContent = function (cid, s, task, t, uid, type) {
+U.MD.D.I.getContent = async function (cid, s, task, t, uid, type) {
     return new Promise((resolve, reject) => {
         U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
             if (res.value[0].length > 0) {
-
                 resolve(res.value[0][0].text);
-
-
             }else{
                 resolve("")
             }
         }, [], { "type": "GET", "withCredentials": true });
+        reject("报错了")
+    }).catch(e=>{
+        console.log(e)
     });
 }