youyawu 5 年之前
父節點
當前提交
7bca5069ba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/userInfo.vue

+ 1 - 1
src/components/userInfo.vue

@@ -40,7 +40,7 @@ export default class extends Vue {
   }
   async logout() {
     if (!(await this.$confirm("是否退出登陆?").catch(x => false))) return;
-    await this.$router.push("/");
+    await this.$router.push("/login");
     user.clear();
   }
 }