chore: fixs tweaks and update texts

This commit is contained in:
zerosoul
2022-05-13 17:37:40 +08:00
parent f2d3272517
commit 873ee5f1de
11 changed files with 29 additions and 16 deletions
+9 -1
View File
@@ -1,5 +1,11 @@
import { createSlice } from "@reduxjs/toolkit";
import { KEY_REFRESH_TOKEN, KEY_TOKEN, KEY_UID, KEY_EXPIRE } from "../config";
import {
KEY_PWA_INSTALLED,
KEY_REFRESH_TOKEN,
KEY_TOKEN,
KEY_UID,
KEY_EXPIRE,
} from "../config";
const initialState = {
uid: null,
token: localStorage.getItem(KEY_TOKEN),
@@ -43,6 +49,8 @@ const authDataSlice = createSlice({
localStorage.removeItem(KEY_TOKEN);
localStorage.removeItem(KEY_REFRESH_TOKEN);
localStorage.removeItem(KEY_UID);
localStorage.removeItem(KEY_PWA_INSTALLED);
return emptyState;
},
setUid(state, action) {