Skip to content

Commit c5fb2bb

Browse files
committed
fix: mock other page
1 parent 3a2bc7b commit c5fb2bb

File tree

4 files changed

+977
-5
lines changed

4 files changed

+977
-5
lines changed

src/mock/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if (process.env.NODE_ENV !== 'production' || process.env.VUE_APP_PREVIEW === 'tr
88
require('./services/auth')
99
require('./services/user')
1010
require('./services/manage')
11+
require('./services/other')
1112

1213
Mock.setup({
1314
timeout: 800 // setter delay time

src/mock/services/manage.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const serverList = (options) => {
1717
const tmpKey = key + i
1818
result.push({
1919
key: tmpKey,
20+
id: tmpKey,
2021
no: 'No ' + tmpKey,
2122
description: '这是一段描述',
2223
callNo: Mock.mock('@integer(1, 999)'),
@@ -35,10 +36,6 @@ const serverList = (options) => {
3536
})
3637
}
3738

38-
const role = () => {
39-
return builder({ message: 'ok' })
40-
}
41-
4239
const projects = () => {
4340
return builder({
4441
'data': [{
@@ -249,7 +246,6 @@ const radar = () => {
249246
}
250247

251248
Mock.mock(/\/service/, 'get', serverList)
252-
Mock.mock(/\/role/, 'get', role)
253249
Mock.mock(/\/list\/search\/projects/, 'get', projects)
254250
Mock.mock(/\/workplace\/activity/, 'get', activity)
255251
Mock.mock(/\/workplace\/teams/, 'get', teams)

0 commit comments

Comments
 (0)