mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
16 lines
359 B
JavaScript
16 lines
359 B
JavaScript
import Mock from 'mockjs'
|
|
import {activities, templates} from '../common/activityData'
|
|
import {teams} from '../../mock/common'
|
|
|
|
activities.forEach(item => {
|
|
item.template = templates[item.activity.type](item.user, item.activity)
|
|
})
|
|
|
|
Mock.mock('/work/activity', 'get', () => {
|
|
return activities
|
|
})
|
|
|
|
Mock.mock('/work/team', 'get', () => {
|
|
return teams
|
|
})
|