Commit 54203c94 by 杨北旺

添加临街点判断/添加本地域名配置

1 parent 1fc9b68e
...@@ -42,6 +42,9 @@ import VConsole from 'vconsole' ...@@ -42,6 +42,9 @@ import VConsole from 'vconsole'
const isMock = true const isMock = true
fetchConfig(!isMock).then(res => { fetchConfig(!isMock).then(res => {
// 添加本地修改配置
// res.request.baseURL = 'http://scrm.dev.glsx.com.cn'
// res.request.baseURL = 'http://scrm.test.glsx.com.cn'
// 从配置服务器获取动态配置 // 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn // 设置 js中可以访问 $cdn
Vue.use(cfg) Vue.use(cfg)
......
...@@ -149,6 +149,10 @@ export default { ...@@ -149,6 +149,10 @@ export default {
if (this.serviceList.length % this.paramForm.pageSize != 0 || (data.list.length == 0 && this.serviceList.length != 0)){ if (this.serviceList.length % this.paramForm.pageSize != 0 || (data.list.length == 0 && this.serviceList.length != 0)){
this.finished = true this.finished = true
} }
// 刚好临界点
if(this.paramForm.pageSize==data.total){
this.finished = true
}
this.isNoResult = this.serviceList.length ? false : true this.isNoResult = this.serviceList.length ? false : true
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!