顺序发送接口

This commit is contained in:
mengxiaolong
2020-11-25 16:49:22 +08:00
parent fe34d439ed
commit 75da345127
2 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import axios from 'axios' import axios from 'axios'
import { Dialog, Toast } from 'vant' import { Dialog, Toast } from 'vant'
import { device } from '@/assets/js/business-common.js' import BusinessCommon from '@/assets/js/business-common.js'
let proposal = [ let proposal = [
'/proposal/proposal/list', '/proposal/proposal/list',
'/proposal/proposal/toInsurance', '/proposal/proposal/toInsurance',
@@ -124,7 +124,7 @@ service.interceptors.request.use(
console.log('localstorage token: ', token) console.log('localstorage token: ', token)
if (relativePath === '/customer/agent/info' && !token) { if (relativePath === '/customer/agent/info' && !token) {
// 设备类型 // 设备类型
const target = device() const target = BusinessCommon.device()
// 安卓or苹果 // 安卓or苹果
if (target.isAndroid || target.isIphone) { if (target.isAndroid || target.isIphone) {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef

View File

@@ -158,9 +158,9 @@ export default {
} }
} }
}, },
created() { async created() {
this.getAgentInfo() await this.getAgentInfo()
this.getTableData() await this.getTableData()
}, },
methods: { methods: {
async getTableData() { async getTableData() {
@@ -179,7 +179,7 @@ export default {
window.EWebBridge.webCallAppInJs('updateWebHeight', { window.EWebBridge.webCallAppInJs('updateWebHeight', {
width, width,
height, height,
isLoadMore: this.isLoadMore isLoadMore: this.idMoreDataShow
}) })
}) })
}, },
@@ -199,7 +199,7 @@ export default {
window.EWebBridge.webCallAppInJs('updateWebHeight', { window.EWebBridge.webCallAppInJs('updateWebHeight', {
width, width,
height, height,
isLoadMore: this.isLoadMore isLoadMore: this.idMoreDataShow
}) })
}) })
}, },