wuhongyu 5 anni fa
parent
commit
7827aeaafc
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      src/views/enterprise/xiugai.vue

+ 6 - 1
src/views/enterprise/xiugai.vue

@@ -72,11 +72,16 @@ export default {
           message: '密码修改成功',
           type: 'success',
         });
-        this.$router.push({ path: '/login' });
+        this.logout();
+        this.toxiugai();
       } else {
         this.$message.error('密码修改失败');
       }
     },
+
+    async toxiugai() {
+      this.$router.push({ path: '/platlive' });
+    },
   },
 };
 </script>