xinfeng 5 лет назад
Родитель
Сommit
d854ad39a6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      components/header.vue

+ 1 - 1
components/header.vue

@@ -299,6 +299,7 @@ export default {
     if (this.myInfo && this.myInfo.nickname) {
       this.getMessageCount();
     }
+    this.loginUrl = this.baseUrl+'/?loginbox=show&next=' + encodeURIComponent(location.href)
   },
   methods: {
     async clickQuit() {
@@ -324,7 +325,6 @@ export default {
   created() {
     this.baseUrl = this.$store.state.domainConfig.siteUrl;
     this.jishuBaseUrl = this.$store.state.domainConfig.jishuinUrl;
-    this.loginUrl = this.baseUrl+'/?loginbox=show&next=' + encodeURIComponent(location.href)
   }
 };
 </script>