tianyun před 2 roky
rodič
revize
4bfd33acf7
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      simple-demo/send_memos.html

+ 2 - 2
simple-demo/send_memos.html

@@ -87,8 +87,8 @@
         requestUtil.async('https://memos.tianyunperfect.cn/api/v1/memo?openId=043a086f-e0a3-4711-aa79-5c3cbe89f97c', 'post', data, {
             'Content-type': 'application/json'
         }).then(res => {
-            if (res['data']) {
-                showMsg("发送成功", 1);
+            if (res['id']) {
+                window.location.href = `https://memos.tianyunperfect.cn/m/${res['id']}`;
             }
         });
     }