Fix loading of page when accessing pages directly

This commit is contained in:
2025-02-13 15:37:36 -05:00
parent bf5ba51c9f
commit e71915cbba
3 changed files with 32 additions and 45 deletions

View File

@@ -22,9 +22,16 @@
</template>
<script async setup>
import {useBrandingStore} from "@/stores/brandingStore.js";
import {onMounted} from "vue";
import Banner from "@/views/creators/Banner.vue";
import Footer from "@/views/main/Footer.vue";
import {useBrandingStore} from "@/stores/brandingStore.js";
const brandingStore = useBrandingStore()
const brandingStore = useBrandingStore();
const creatorName = window.location.pathname.split('/@').pop();
onMounted(async () => {
await brandingStore.updateBrand(creatorName);
});
</script>