introduce vuex
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2021-09-19 17:30:37 +02:00
parent 94d2a98b96
commit a408cae686
10 changed files with 129 additions and 46 deletions

View File

@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<header v-if="this.$route.path.includes('/s/')">
<Navbar />
</header>
<router-view />
<router-view :key="$route.fullPath" />
<Footer />
</template>
<script>
@ -16,21 +16,10 @@ import Footer from '@/components/Footer.vue'
import Navbar from '@/components/Navbar.vue'
export default {
name: "App",
name: 'App',
components: {
Footer,
Navbar,
},
data() {
return {
memberId: null,
};
},
created() {
this.memberId = localStorage.getItem("user_id");
},
updated() {
this.memberId = localStorage.getItem("user_id");
},
}
};
</script>