#
whycq
2023-10-17 94ed9c21bf8364b71e881476d572a4df192607f3
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
}