change doc & mock
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import askleavelist from './askleavelist.json';
|
||||
import conclusionlist from './conclusionlist.json';
|
||||
import loglist from './loglist.json';
|
||||
import reportlist from './reportlist.json';
|
||||
import sheet from './sheet.json';
|
||||
import sheetlist from './sheetlist.json';
|
||||
import askleavelist from './askleavelist.json';
|
||||
|
||||
module.exports = {
|
||||
'GET /stats': {
|
||||
@@ -91,6 +91,21 @@ module.exports = {
|
||||
total: 24,
|
||||
data: askleavelist,
|
||||
},
|
||||
'POST /login': {
|
||||
success: true,
|
||||
data: {
|
||||
token: 'token_test',
|
||||
name: '亦可',
|
||||
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
|
||||
role: 6,
|
||||
department: 1,
|
||||
access: 'admin',
|
||||
},
|
||||
},
|
||||
'POST /logout': {
|
||||
success: true,
|
||||
data: {},
|
||||
},
|
||||
'GET /api/currentUser': {
|
||||
success: true,
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user