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
这个提交包含在:
Guoguo
2026-04-28 18:49:00 -07:00
父节点 6201b97fcd
当前提交 b754926937
修改 3 个文件,包含 11 行新增10 行删除
+1
查看文件
@@ -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 {