mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 18:26:43 +08:00
pdf加载测试
This commit is contained in:
@@ -69,6 +69,7 @@ let productStore = [
|
||||
'/customer/shop/getShopList', //获取商城列表/详情
|
||||
'/customer/shop/getShareList' //查询分享轨迹(转发记录)
|
||||
]
|
||||
|
||||
// 卡单
|
||||
let cardList = []
|
||||
let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale, ...agentEnter, ...claims, ...survey, ...manpower, ...productStore]
|
||||
@@ -83,12 +84,12 @@ service.interceptors.request.use(
|
||||
config => {
|
||||
let relativePath = config.url && config.url.split('v1')[1]
|
||||
if (whiteList.includes(relativePath)) {
|
||||
Toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
// Toast.loading({
|
||||
// duration: 0, // 持续展示 toast
|
||||
// forbidClick: true, // 禁用背景点击
|
||||
// loadingType: 'spinner',
|
||||
// message: '加载中……'
|
||||
// })
|
||||
}
|
||||
|
||||
config.headers['token'] = window.localStorage.getItem('token')
|
||||
@@ -105,6 +106,7 @@ service.interceptors.request.use(
|
||||
service.interceptors.response.use(
|
||||
response => {
|
||||
const res = response.data
|
||||
console.log(res, 'res')
|
||||
Toast.clear()
|
||||
if (res.code != 0) {
|
||||
if (res.code == 10001 || res.code == 10002) {
|
||||
|
||||
Reference in New Issue
Block a user