前端:增加注册登陆
前端:个人信息修改
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user