-
+
{{ t('login') }}
-
+
{
store.commit("user/setToken", res.data.token);
store.dispatch("user/refreshInfo");
store.commit("setRouteLoaded", false);
- localStorage.setItem("pm_token", res.data.token);
+ // localStorage.setItem("pm_token", res.data.token);
router.push("/")
}).finally(() => {
loading.value = false;
@@ -65,6 +67,27 @@ function doLogin() {
-
diff --git a/yarn.lock b/yarn.lock
index 68400a1..4a85906 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -442,6 +442,11 @@ combined-stream@^1.0.8:
dependencies:
delayed-stream "~1.0.0"
+commander@*:
+ version "11.1.0"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-11.1.0.tgz#62fdce76006a68e5c1ab3314dc92e800eb83d906"
+ integrity sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==
+
csstype@^3.1.1:
version "3.1.2"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b"
@@ -699,6 +704,13 @@ mlly@^1.2.0, mlly@^1.4.2:
pkg-types "^1.0.3"
ufo "^1.3.0"
+mockjs@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/mockjs/-/mockjs-1.1.0.tgz#e6a0c378e91906dbaff20911cc0273b3c7d75b06"
+ integrity sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ==
+ dependencies:
+ commander "*"
+
ms@2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"