zhuangyunsheng hace 1 año
padre
commit
59330a6932

+ 1 - 0
src/layout/components/updatePwd.vue

@@ -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);

+ 1 - 0
src/layout/components/userbar.vue

@@ -43,6 +43,7 @@
 					}).then(() => {
 						this.$TOOL.cookie.remove("TOKEN");
 						this.$TOOL.data.remove("USER_INFO");
+						this.$TOOL.data.remove("OA_USER_INFO");
 						this.$router.replace({ path: "/login" });
 					}).catch(() => {});
 				}

+ 1 - 0
src/router/index.js

@@ -119,6 +119,7 @@ router.beforeEach(async (to, from, next) => {
 					}).then(() => {
 						tool.cookie.remove("TOKEN");
 						tool.data.remove("USER_INFO");
+						tool.data.remove("OA_USER_INFO");
 						location.reload(); // 为了重新实例化vue-router对象 避免bug
 					}).catch(() => { });
 				}

+ 1 - 0
src/utils/request.js

@@ -221,6 +221,7 @@ function messageBox_401() {
 		}).then(() => {
 			tool.cookie.remove("TOKEN");
 			tool.data.remove("USER_INFO");
+			tool.data.remove("OA_USER_INFO");
 			router.replace({ path: "/login" });
 		}).catch(() => { });
 	}

+ 1 - 0
src/views/login/index.vue

@@ -61,6 +61,7 @@
 		mounted() {
 			this.$TOOL.cookie.remove("TOKEN");
 			this.$TOOL.data.remove("USER_INFO");
+			this.$TOOL.data.remove("OA_USER_INFO");
 			this.$TOOL.data.remove("MENU");
 			this.$TOOL.data.remove("PERMISSIONS")
 			this.$store.commit("clearViewTags");

+ 2 - 2
src/views/procurement/process/index.vue

@@ -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;