chore: migrate to script setup style

This commit is contained in:
2024-02-02 18:55:45 +01:00
parent d1bcaf423f
commit 171e1039a7
15 changed files with 3468 additions and 4540 deletions
+5 -10
View File
@@ -4,18 +4,13 @@
</div>
</template>
<script>
<script setup lang='ts'>
import { getCurrentInstance } from 'vue'
import { useState } from '~/store'
export default {
name: 'ThemedLayout',
setup () {
const instance = getCurrentInstance()
const state = useState()
if (instance) {
instance.proxy.$vuetify.theme.dark = state.darkMode
}
}
const instance = getCurrentInstance()
const state = useState()
if (instance) {
instance.proxy.$vuetify.theme.dark = state.darkMode
}
</script>