@@ -73,6 +73,7 @@
this.isSaveing = false;
this.$TOOL.cookie.remove("TOKEN");
this.$TOOL.data.remove("USER_INFO");
+ this.$TOOL.data.remove("OA_USER_INFO");
this.$router.replace({ path: "/login" });
}, 1500);
}).catch(() => this.isSaveing = false);
@@ -43,6 +43,7 @@
}).then(() => {
}).catch(() => {});
}
@@ -119,6 +119,7 @@ router.beforeEach(async (to, from, next) => {
tool.cookie.remove("TOKEN");
tool.data.remove("USER_INFO");
+ tool.data.remove("OA_USER_INFO");
location.reload(); // 为了重新实例化vue-router对象 避免bug
}).catch(() => { });
@@ -221,6 +221,7 @@ function messageBox_401() {
router.replace({ path: "/login" });
@@ -61,6 +61,7 @@
mounted() {
this.$TOOL.data.remove("MENU");
this.$TOOL.data.remove("PERMISSIONS")
this.$store.commit("clearViewTags");
@@ -292,8 +292,8 @@ export default {
// oa 情况通知-是否开启
openChange(status, { id, oaStatus }) {
if (status === 1 && oaStatus === undefined) return;
-console.log(status)
-console.log(oaStatus)
+ if (status === 1 && oaStatus === null) return;
+
this.loading = true;
this.$API.auth.oa.updateStatus({ id, status }).then(() => {
this.loading = false;