Explorar el Código

bug修改

master
@weixixuan hace 2 días
padre
commit
acd9e07c1f
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 0
    1
      pages/user/user.vue
  2. 3
    0
      utils/network/request.js

+ 0
- 1
pages/user/user.vue Ver fichero

@@ -294,7 +294,6 @@
}
const changePhone = () => {
console.log(111)
navTo('/subpackage/personal-center/setting/change-phone', true)
}

+ 3
- 0
utils/network/request.js Ver fichero

@@ -383,6 +383,9 @@ export function requestNew(code, options = {}, start = false, clie = () => {}) {
// requestNew(code, options, true)
// })
if (!getItem("IsLogin") || getItem("IsLogin") == false) {
// 清除token,防止过期token或者错误token的错误请求
removeItem(StorageKeys.Token)
removeItem(StorageKeys.OpenId)
setItem("IsLogin", true);
uni.showModal({
title: "提示",

Cargando…
Cancelar
Guardar