From 356f54467f525f437f41271fb62f6be66f2ab1e5 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 18 十二月 2023 17:36:11 +0800
Subject: [PATCH] 1. 调整飞羽环境用户信息的编辑

---
 src/api/fytz/noticeApi.js |   32 +++++++++++++-------------------
 1 files changed, 13 insertions(+), 19 deletions(-)

diff --git a/src/api/fytz/noticeApi.js b/src/api/fytz/noticeApi.js
index 175bd98..1a341d7 100644
--- a/src/api/fytz/noticeApi.js
+++ b/src/api/fytz/noticeApi.js
@@ -9,27 +9,23 @@
    */
   getNoticeHistory({ type, subtype = null, page = 1, perPage = 20 }) {
     const params = `userId=${id}&page=${page}&per_page=${perPage}`;
-    return $fytz
-      .post(`notifications/history?${params}`, {
-        ecNoticetype: type,
-        ecNoticesubtype: subtype,
-      })
-      .then((res) => res.data);
+    return $fytz.post(`notifications/history?${params}`, {
+      ecNoticetype: type,
+      ecNoticesubtype: subtype
+    });
   },
 
   /**
    * 鑾峰彇鐢ㄦ埛鏈閫氱煡
    */
   getNotification() {
-    return $fytz
-      .get('notifications', {
-        params: {
-          userId: id,
-          page: 1,
-          per_page: 30,
-        },
-      })
-      .then((res) => res.data);
+    return $fytz.get('notifications', {
+      params: {
+        userId: id,
+        page: 1,
+        per_page: 30
+      }
+    });
   },
 
   /**
@@ -66,8 +62,6 @@
   releaseNotice(notice) {
     notice.authorId = id;
     notice.authorName = name;
-    return $fytz
-      .post(`notifications/${id}/release2`, notice)
-      .then((res) => res.data);
-  },
+    return $fytz.post(`notifications/${id}/release2`, notice);
+  }
 };

--
Gitblit v1.9.3