code refactor

This commit is contained in:
MaysWind
2020-10-20 22:46:24 +08:00
parent 32d3972ce9
commit be8bd6b17b
20 changed files with 123 additions and 115 deletions
+21
View File
@@ -0,0 +1,21 @@
<template>
<f7-page name="home">
<f7-navbar :title="$t('Settings')" :back-link="$t('Back')"></f7-navbar>
<f7-list>
<f7-list-button @click="logout">{{ $t('Logout') }}</f7-list-button>
</f7-list>
</f7-page>
</template>
<script>
export default {
methods: {
logout() {
const router = this.$f7router;
this.$user.clearToken();
router.navigate('/');
}
}
};
</script>