chore: refactor a lot, add codegen and upgrade vue
This commit is contained in:
@@ -5,12 +5,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getCurrentInstance } from 'vue'
|
||||
import { getDarkMode } from '../../utils/localStorage'
|
||||
|
||||
export default {
|
||||
name: 'ThemedLayout',
|
||||
setup(props, context) {
|
||||
context.root.$vuetify.theme.dark = getDarkMode()
|
||||
setup() {
|
||||
const instance = getCurrentInstance()
|
||||
if (instance) {
|
||||
instance.proxy.$vuetify.theme.dark = getDarkMode()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user