fix: clear stale token expiry on auth failure, correct doc inaccuracies
- request.js: also remove admin_token_expiry when clearing auth on 1001/1002 response, preventing stale expiry value in storage - 01-服务端架构.md: fix table count from 10 to 11 - 03-管理后台架构.md: add /api/v1 prefix to all API endpoint paths
这个提交包含在:
@@ -20,6 +20,7 @@ function request(options) {
|
||||
resolve(res.data.data)
|
||||
} else if (res.data && (res.data.code === 1001 || res.data.code === 1002)) {
|
||||
uni.removeStorageSync('admin_token')
|
||||
uni.removeStorageSync('admin_token_expiry')
|
||||
uni.reLaunch({ url: '/pages/login/index' })
|
||||
reject(res.data)
|
||||
} else {
|
||||
|
||||
在新工单中引用
屏蔽一个用户