-
+
-
- {{ $t('userCenter') }}
- {{ $t('changePass') }}
- {{ $t('logout') }}
+ {{
+ $t("userCenter")
+ }}
+ {{ $t("changePass") }}
+ {{ $t("logout") }}
@@ -60,7 +69,7 @@ import messageTip from "./main-components/message-tip.vue";
import circleLoading from "@/views/my-components/lili/circle-loading.vue";
import Cookies from "js-cookie";
import util from "@/libs/util.js";
-import { getNoticePage,logout } from "@/api/index";
+import { getNoticePage, logout } from "@/api/index";
var client;
export default {
@@ -90,7 +99,7 @@ export default {
},
lang() {
return this.$store.state.app.lang;
- }
+ },
},
methods: {
@@ -131,13 +140,13 @@ export default {
}
// 退出登录
else if (name === "loginOut") {
- logout().then(res => {
+ logout().then((res) => {
this.$store.commit("logout", this);
- this.$store.commit('setAdded', false);
+ this.$store.commit("setAdded", false);
this.setStore("accessToken", "");
this.setStore("refreshToken", "");
this.$router.push({ path: "/login" });
- })
+ });
}
},
//切换标签
@@ -149,12 +158,7 @@ export default {
});
if (!openpageHasTag) {
// 解决关闭当前标签后再点击回退按钮会退到当前页时没有标签的问题
- util.openNewPage(
- this,
- name,
- this.$route.params || {},
- this.$route.query || {}
- );
+ util.openNewPage(this, name, this.$route.params || {}, this.$route.query || {});
}
},
//宽度动态计算
{{ userInfo.nickName }}
-
+