tianyun 2 năm trước cách đây
mục cha
commit
4bfd33acf7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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']}`;
             }
         });
     }