前端:整理首页

前端:修复订单列表和详情价格展示错误
前端:H5 页面的登陆拦截补充
后端 + 前端:增加 refreshToken 刷新 accessToken
This commit is contained in:
YunaiV
2019-04-22 19:11:23 +08:00
parent 3e156b18ee
commit f46a4f7010
28 changed files with 292 additions and 94 deletions

View File

@@ -3,8 +3,8 @@
// localStorage 操作
const cacheKeys = {
accessTokenKey: 'accessToken',
refreshTokenKey: 'refreshToken',
ACCESS_TOKEN: 'accessToken',
REFRESH_TOKEN: 'refreshToken',
};
///
@@ -49,4 +49,4 @@ function removeLocalStorage(key) {
} catch (e) {
throw new Error(`localStorage 设置错误! ${e}`);
}
}
}