feat: centralize all screen related callbacks in useScreen
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
const store = useSettingsStore();
|
||||
const { onRender } = useScreen();
|
||||
|
||||
const store = useSettingsStore();
|
||||
const { assets } = useAssets();
|
||||
|
||||
const renderNotification = (
|
||||
@@ -76,7 +77,7 @@ const submenuNotification = computed(() => {
|
||||
};
|
||||
});
|
||||
|
||||
useRender((ctx) => {
|
||||
onRender((ctx) => {
|
||||
let count = 1;
|
||||
if (menuNotification.value) count++;
|
||||
if (submenuNotification.value) count++;
|
||||
|
||||
Reference in New Issue
Block a user