Skip to content

Commit 8fa2364

Browse files
committed
add mock delay
1 parent 551e911 commit 8fa2364

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mock/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import articleAPI from './article'
44
import article_tableAPI from './article_table'
55
import remoteSearchAPI from './remoteSearch'
66

7+
Mock.setup({
8+
timeout: '350-600'
9+
})
10+
711
// 登录相关
812
Mock.mock(/\/login\/login/, 'post', loginAPI.loginByUsername)
913
Mock.mock(/\/login\/logout/, 'post', loginAPI.logout)

0 commit comments

Comments
 (0)