mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-29 06:22:44 +08:00
修改token名
This commit is contained in:
parent
628fde1787
commit
190681c876
@ -1,15 +1,15 @@
|
||||
import moment from "moment";
|
||||
|
||||
export function getToken(): string {
|
||||
return window.localStorage.getItem("playedu-backend-token") || "";
|
||||
return window.localStorage.getItem("playedu-frontend-token") || "";
|
||||
}
|
||||
|
||||
export function setToken(token: string) {
|
||||
window.localStorage.setItem("playedu-backend-token", token);
|
||||
window.localStorage.setItem("playedu-frontend-token", token);
|
||||
}
|
||||
|
||||
export function clearToken() {
|
||||
window.localStorage.removeItem("playedu-backend-token");
|
||||
window.localStorage.removeItem("playedu-frontend-token");
|
||||
}
|
||||
|
||||
export function dateFormat(dateStr: string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user