fix: 修复mock无法使用问题

This commit is contained in:
kailong321200875
2023-12-10 10:11:14 +08:00
parent 81d2dc6a43
commit 319aaef7ee
12 changed files with 148 additions and 134 deletions

View File

@@ -1,14 +1,14 @@
import { SUCCESS_CODE } from '@/constants'
const delay = 1000
const timeout = 1000
export default [
// 获取统计
{
url: '/mock/workplace/total',
method: 'GET',
delay,
body: () => {
method: 'get',
timeout,
response: () => {
return {
code: SUCCESS_CODE,
data: {
@@ -22,9 +22,9 @@ export default [
// 获取项目
{
url: '/mock/workplace/project',
method: 'GET',
delay,
body: () => {
method: 'get',
timeout,
response: () => {
return {
code: SUCCESS_CODE,
data: [
@@ -77,9 +77,9 @@ export default [
// 获取动态
{
url: '/mock/workplace/dynamic',
method: 'GET',
delay,
body: () => {
method: 'get',
timeout,
response: () => {
return {
code: SUCCESS_CODE,
data: [
@@ -114,9 +114,9 @@ export default [
// 获取团队信息
{
url: '/mock/workplace/team',
method: 'GET',
delay,
body: () => {
method: 'get',
timeout,
response: () => {
return {
code: SUCCESS_CODE,
data: [
@@ -151,9 +151,9 @@ export default [
// 获取指数
{
url: '/mock/workplace/radar',
method: 'GET',
delay,
body: () => {
method: 'get',
timeout,
response: () => {
return {
code: SUCCESS_CODE,
data: [