闫增涛
2024-03-22 986d4798a9dad75b6ae617e52ea2918dfacd3708
services/home/home.js
@@ -1,4 +1,4 @@
import { config } from '../../config/index';
/** 获取首页数据 */
function mockFetchHome() {
  const { delay } = require('../_utils/delay');
@@ -45,19 +45,19 @@
          text: '书目下载',
          key: 6,
          icon: '/static/images/home/shumuxiazai@2x.png',
          url: '',
          url: '/pages/bibliographyList/index',
        },
        {
          text: '教师认证',
          key: 7,
          icon: '/static/images/home/jiaoshirenzheng@2x.png',
          url: '/pages/teacherCertification/index',
          url: '/packageDomain/pages/teacherCertification/index',
        },
        {
          text: '样书申请',
          key: 8,
          icon: '/static/images/home/yangshushenqing@2x.png',
          url: '',
          url: '/packageDomain/pages/sampleBookList/index',
        },
        {
          text: '我要出书',
@@ -72,10 +72,5 @@
/** 获取首页数据 */
export function fetchHome() {
  if (config.useMock) {
    return mockFetchHome();
  }
  return new Promise((resolve) => {
    resolve('real api');
  });
  return mockFetchHome();
}