From 3334d4402759187b2b2b48a94733b33e13d0012a Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 04 十一月 2023 13:53:58 +0800
Subject: [PATCH] #
---
pages/api/index.js | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/pages/api/index.js b/pages/api/index.js
index 8af7a6f..48472c5 100644
--- a/pages/api/index.js
+++ b/pages/api/index.js
@@ -85,6 +85,28 @@
header: {'token':uni.getStorageSync('token')},
method: 'POST',
}).then((res)=> {
+ res = res[1].data
+ if (res.code === 200) {
+ item = {
+ code: res.code,
+ data: res.data
+ }
+ } else if(res.code === 403){
+ item = {code: 403,msg: '璇烽噸鏂扮櫥褰�'}
+ }
+ },(result)=>{
+ // console.log(res);
+ })
+ return item
+}
+
+async function getMonthData() {
+ let item = [];
+ let ress = await uni.request({
+ url: `${common.baseUrl}/dashboard/currentMonthData/auth`,
+ header: {'token':uni.getStorageSync('token')},
+ method: 'POST',
+ }).then((res)=> {
console.log(res);
res = res[1].data
if (res.code === 200) {
@@ -105,5 +127,6 @@
getCompanyData,
getPersonData,
getStaffRank,
- getCompanyPostList
+ getCompanyPostList,
+ getMonthData
}
\ No newline at end of file
--
Gitblit v1.9.1