Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

Commit 72d9749

Browse files
committed
fix(login): remove routes when login page fix #13
1 parent ae37d7d commit 72d9749

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/pages/Login/index.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
</template>
4747

4848
<script>
49+
import { mapActions } from 'vuex'
4950
import PageFooter from 'COMPONENTS/PageFooter'
5051
import createRules from './rules'
5152
@@ -78,7 +79,12 @@ export default {
7879
},
7980
switchLoading (state) {
8081
this.isLoading = state
81-
}
82+
},
83+
...mapActions('login', ['userLogout'])
84+
},
85+
86+
created () {
87+
this.userLogout()
8288
},
8389
8490
components: {

0 commit comments

Comments
 (0)