123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- import { SUCCESS_CODE } from '@/constants'
- const timeout = 600000
- export default [
- {
- url: '/mock/request/1',
- method: 'get',
- timeout,
- response: () => {
- return {
- code: SUCCESS_CODE,
- data: 'request-1'
- }
- }
- },
- {
- url: '/mock/request/2',
- method: 'get',
- timeout,
- response: () => {
- return {
- code: SUCCESS_CODE,
- data: 'request-2'
- }
- }
- },
- {
- url: '/mock/request/3',
- method: 'get',
- timeout,
- response: () => {
- return {
- code: SUCCESS_CODE,
- data: 'request-3'
- }
- }
- },
- {
- url: '/mock/request/4',
- method: 'get',
- timeout,
- response: () => {
- return {
- code: SUCCESS_CODE,
- data: 'request-4'
- }
- }
- },
- {
- url: '/mock/request/5',
- method: 'get',
- timeout,
- response: () => {
- return {
- code: SUCCESS_CODE,
- data: 'request-5'
- }
- }
- },
- {
- url: '/mock/request/expired',
- method: 'get',
- timeout: 0,
- response: () => {
- return {
- code: 401,
- message: 'token expired'
- }
- }
- }
- ]
|