traefik/webui/src/App.vue

31 lines
493 B
Vue
Raw Normal View History

<template>
2019-08-26 16:15:41 +00:00
<div id="q-app">
<router-view />
</div>
</template>
<script>
2019-08-26 16:15:41 +00:00
import { APP } from './_helpers/APP'
export default {
2019-08-26 16:15:41 +00:00
name: 'App',
beforeCreate () {
// Set vue instance
APP.vue = () => this.$root
// debug
console.log('Quasar -> ', this.$q.version)
2020-02-27 20:30:04 +00:00
this.$q.dark.set(localStorage.getItem('traefik-dark') === 'true')
},
watch: {
'$q.dark.isActive' (val) {
localStorage.setItem('traefik-dark', val)
}
}
2019-08-26 16:15:41 +00:00
}
</script>
2019-08-26 16:15:41 +00:00
<style>
</style>