瀏覽代碼

Going to Login page when Loging out

master
Lene' Scholtz 5 年之前
父節點
當前提交
30744ed4f5

+ 1
- 3
src/components/shared/navBar.vue 查看文件

@@ -197,7 +197,7 @@
197 197
             </li>
198 198
             <li class="nav-item dropdown" v-if="showLogout">
199 199
               <span>
200
-                <a class="nav-link" @click="logout()">Logout</a>
200
+                <a class="nav-link" @click="logout(routerGoTo('/user/login'))">Logout</a>
201 201
               </span>
202 202
               <!-- <span v-else></span> -->
203 203
             </li>
@@ -251,8 +251,6 @@ export default {
251 251
     Logout() {
252 252
       // eslint-disable-next-line no-unused-expressions
253 253
       this.$store.state.authentication.methods.logout;
254
-      // eslint-disable-next-line vue/no-side-effects-in-computed-properties
255
-      this.$router.push('/user/login');
256 254
     },
257 255
   },
258 256
 

+ 0
- 1
src/components/timeshare/sell/sellPage.vue 查看文件

@@ -320,7 +320,6 @@
320 320
             <BankDetails :bankingDetails="sellItem.owner.bankingDetails" />
321 321
             <hr />
322 322
           </div>
323
-          <hr />
324 323
           <br />
325 324
           <div class="myWell">
326 325
             <h4>Share transfer information</h4>

+ 1
- 1
src/components/user/logOut.vue 查看文件

@@ -11,7 +11,7 @@ export default {
11 11
     ...mapActions('authentication', ['logout']),
12 12
     Logout() {
13 13
       this.logout('logout').then(() => {
14
-        this.$router.push('/users/login');
14
+        this.$router.push('/user/login');
15 15
       });
16 16
     },
17 17
   },

+ 2
- 2
src/components/user/loginPage.vue 查看文件

@@ -8,7 +8,7 @@
8 8
             <h4>Login</h4>
9 9
             <br />
10 10
           </div>
11
-          <!-- <alert :text="'Login successful'" :type="'SUCCESS'" />
11
+          <!--<alert :text="'Login successful'" :type="'SUCCESS'" />
12 12
           <alert :text="'User does not exist, please register'" :type="'ERROR'" />
13 13
           <alert :text="'Username is incorrect'" :type="'WARNING'" />
14 14
           <alert :text="'Password is incorrect'" :type="'WARNING'" />
@@ -81,7 +81,7 @@
81 81
         <div class="form">
82 82
           <h5>Trouble signing in?</h5>
83 83
           <div>
84
-            <!-- <alert :text="'Username & password request email sent'" :type="'SUCCESS'" /> -->
84
+            <!--<alert :text="'Username & password request email sent'" :type="'SUCCESS'" />-->
85 85
             <div class="row">
86 86
               <div class="input-group-prepend">
87 87
                 <span class="input-group-text">

Loading…
取消
儲存