杂务:整理文档并收口 YumiNail 修复
This commit is contained in:
@@ -192,7 +192,11 @@ async function refreshToken() {
|
||||
}
|
||||
|
||||
async function handleUnauthorized(options) {
|
||||
if (options._retry || isWhitelistedPath(options.url)) {
|
||||
if (isWhitelistedPath(options.url)) {
|
||||
throw normalizeError('\u8bf7\u6c42\u9700\u8981\u767b\u5f55\uff0c\u4f46\u5f53\u524d\u9875\u9762\u5141\u8bb8\u533f\u540d\u67e5\u770b', 401)
|
||||
}
|
||||
|
||||
if (options._retry) {
|
||||
auth.clearSession()
|
||||
const app = getApp()
|
||||
if (app && typeof app.clearUserSession === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user