mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 15:06:45 +08:00
[NEW]【保全-续期账号变更】配置mock
This commit is contained in:
@@ -62,7 +62,10 @@ let survey = [
|
|||||||
//'/customer/question/getTableId', // id 查询 -- ok
|
//'/customer/question/getTableId', // id 查询 -- ok
|
||||||
'/customer/question/getAgentInfo' // 代理人详情
|
'/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实例
|
// 创建axios实例
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
|
|||||||
6
src/config/preserve.js
Normal file
6
src/config/preserve.js
Normal 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' //客户详情
|
||||||
|
}
|
||||||
@@ -11,6 +11,7 @@ import product from './product'
|
|||||||
import serve from './serve'
|
import serve from './serve'
|
||||||
import common from './common'
|
import common from './common'
|
||||||
import survey from './survey'
|
import survey from './survey'
|
||||||
|
import preserve from './preserve'
|
||||||
const mockBaseUrl = 'http://rap2api.taobao.org/app/mock'
|
const mockBaseUrl = 'http://rap2api.taobao.org/app/mock'
|
||||||
|
|
||||||
let baseObj = {
|
let baseObj = {
|
||||||
@@ -18,6 +19,6 @@ let baseObj = {
|
|||||||
'/user/info': mockBaseUrl + '/223948/info',
|
'/user/info': mockBaseUrl + '/223948/info',
|
||||||
'/user/logout': mockBaseUrl + '/223948/logout'
|
'/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
|
export default baseObj
|
||||||
|
|||||||
Reference in New Issue
Block a user