Commit 7741b889 authored by lizhan's avatar lizhan

📝 【TASK-20240806-01】TASK:APP个人信息国家城市增加

parent 831b3483
NODE_ENV = development
# 捷道管理系统/本地开发环境
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
VUE_APP_BASE_API = 'https://apitest.groupage.cn'
This diff is collapsed.
......@@ -149,7 +149,7 @@
let params = {
areaCode: this.areaData[this.areaIndex],
code: this.code,
englishName: 'Nick',
englishName: '',
mobile: this.mobile,
password: this.password,
}
......
This diff is collapsed.
This diff is collapsed.
// const domain = 'https://api2.groupage.cn'
const domain = 'https://api2.groupage.cn'
// const domain = 'https://api.jd.jdshangmen.com'
// const domain = 'https://api.sit.jdshangmen.com'
// const domain = 'https://api2.groupage.cn'
const domain = 'https://apitest.groupage.cn'
const config = {
CDN_DOMAIN: domain,
API: domain
API: domain,
}
export default config
......@@ -69,19 +69,11 @@ function callback(resolve, reject, response) {
})
}
if (data.code == 401) {
let pages = getCurrentPages() // 获取栈实例
if(pages.length>1){
let prevPage = pages[pages.length - 2]
if(!prevPage||prevPage.route!='pages/login/login'){
store.commit('logout')
uni.reLaunch({
url: '/pages/login/login'
})
}
}
}
resolve(data)
} else {
resolve(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment