去登录加入取消
parent
9bff65377b
commit
b3d6a3dc1b
|
|
@ -4,9 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// 基础URL配置(注意:末尾不要加斜杠)
|
// 基础URL配置(注意:末尾不要加斜杠)
|
||||||
// const BASE_URL = 'https://guangsh.manage.hschengtai.com'
|
const BASE_URL = 'https://guangsh.manage.hschengtai.com'
|
||||||
// const BASE_URL = 'http://192.168.0.97:48085'
|
// const BASE_URL = 'http://192.168.0.97:48085'
|
||||||
const BASE_URL = 'http://192.168.5.134:48085'
|
// const BASE_URL = 'http://192.168.5.134:48085'
|
||||||
// 是否正在刷新token(防止并发刷新)
|
// 是否正在刷新token(防止并发刷新)
|
||||||
let isRefreshing = false
|
let isRefreshing = false
|
||||||
// 等待刷新完成的请求队列
|
// 等待刷新完成的请求队列
|
||||||
|
|
@ -280,7 +280,8 @@ export function request(options = {}) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: res.data.msg || res.data.message || '账号未登录,请前往登录',
|
content: res.data.msg || res.data.message || '账号未登录,请前往登录',
|
||||||
showCancel: false,
|
showCancel: true,
|
||||||
|
cancelText: '取消',
|
||||||
confirmText: '去登录',
|
confirmText: '去登录',
|
||||||
success: (modalRes) => {
|
success: (modalRes) => {
|
||||||
if (modalRes.confirm) {
|
if (modalRes.confirm) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue