前端:增加注册登陆

前端:个人信息修改
This commit is contained in:
YunaiV
2019-03-28 19:19:04 +08:00
parent 1900ccafe2
commit 366f7791fb
14 changed files with 272 additions and 70 deletions

View File

@@ -22,6 +22,8 @@ export function getLoginToken() {
return res;
}
///
/// 设置 localStorage 公共方法
@@ -39,4 +41,12 @@ function getLocalStorage(key) {
} catch (e) {
throw new Error(`localStorage 获取错误! ${e}`);
}
}
function removeLocalStorage(key) {
try {
localStorage.removeItem(key);
} catch (e) {
throw new Error(`localStorage 设置错误! ${e}`);
}
}