tianyun 2 лет назад
Родитель
Сommit
4bfd33acf7
1 измененных файлов с 2 добавлено и 2 удалено
  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']}`;
             }
         });
     }