[NEW]【保全-续期账号变更】配置mock

This commit is contained in:
yuweiqi
2020-04-15 21:59:10 +08:00
parent 625b35f9b2
commit 5041dfc241
3 changed files with 12 additions and 2 deletions

View File

@@ -62,7 +62,10 @@ let survey = [
//'/customer/question/getTableId', // id 查询 -- ok
'/customer/question/getAgentInfo' // 代理人详情
]
let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale, ...agentEnter, ...claims, ...survey]
let preserve = [
'/edor/customer/customerList' //客户搜索
]
let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale, ...agentEnter, ...claims, ...survey, ...preserve]
// 创建axios实例
const service = axios.create({

6
src/config/preserve.js Normal file
View File

@@ -0,0 +1,6 @@
//保全
let mockBaseUrl = 'http://mock-api.com/LwnaDLg1.mock'
export default {
'/edor/customer/customerList': mockBaseUrl + '/edor/customer/customerList', //客户搜索
'/edor/customer/customerInfo': mockBaseUrl + '/edor/customer/customerInfo' //客户详情
}

View File

@@ -11,6 +11,7 @@ import product from './product'
import serve from './serve'
import common from './common'
import survey from './survey'
import preserve from './preserve'
const mockBaseUrl = 'http://rap2api.taobao.org/app/mock'
let baseObj = {
@@ -18,6 +19,6 @@ let baseObj = {
'/user/info': mockBaseUrl + '/223948/info',
'/user/logout': mockBaseUrl + '/223948/logout'
}
Object.assign(baseObj, proposal, sale, customer, my, product, serve, common, survey)
Object.assign(baseObj, proposal, sale, customer, my, product, serve, common, survey, preserve)
export default baseObj