tianyunperfect 1 năm trước cách đây
mục cha
commit
611ad8791a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      simple-demo/excalidraw-versions.html

+ 2 - 2
simple-demo/excalidraw-versions.html

@@ -15,7 +15,7 @@
                 url: `https://php.tianyunperfect.cn/controller/excalidraw.php?action=get_by_id&id=${a}`,
                 method: 'GET',
                 success: function (response) {
-                    if (response.code === 1) {
+                    if (response.code === 200) {
                         // 拼接list页面
                         let listHtml = '';
                         response.data.forEach(function (item) {
@@ -49,7 +49,7 @@
                 url: `https://php.tianyunperfect.cn/controller/excalidraw.php?action=delete&id=${a}&version=${version}`,
                 method: 'DELETE',
                 success: function (response) {
-                    if (response.code === 1) {
+                    if (response.code === 200) {
                         window.location.reload(); // 刷新页面
                     } else {
                         alert(response.message);