Refactored deploy path

This commit is contained in:
Cagatay Civici
2022-11-29 10:41:49 +03:00
parent c80bbf8f70
commit 93ec659282
7 changed files with 31 additions and 32 deletions

View File

@@ -16,9 +16,10 @@ onMounted(() => {
onBeforeUnmount(() => {
unbindOutsideClickListener();
});
const logoUrl = () => {
return new URL(`/public/layout/images/${layoutConfig.darkTheme.value ? 'logo-white' : 'logo-dark'}.svg`, import.meta.url).href;
};
const logoUrl = computed(() => {
return `layout/images/${layoutConfig.darkTheme.value ? 'logo-white' : 'logo-dark'}.svg`;
});
const onTopBarMenuButton = () => {
topbarMenuActive.value = !topbarMenuActive.value;
@@ -62,7 +63,7 @@ const isOutsideClicked = (event) => {
<template>
<div class="layout-topbar">
<router-link to="/" class="layout-topbar-logo">
<img :src="logoUrl()" alt="logo" />
<img :src="logoUrl" alt="logo" />
<span>SAKAI</span>
</router-link>