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