fix: 打包后页面跳转问题

pull/2/head
xingyu 2022-12-19 10:13:09 +08:00
parent 6db1f77d13
commit 47beb13a58
1 changed files with 26 additions and 24 deletions

View File

@ -55,31 +55,33 @@ watch(
</script> </script>
<template> <template>
<router-link <div>
:class="[ <router-link
prefixCls,
layout !== 'classic' ? `${prefixCls}__Top` : '',
'flex !h-[var(--logo-height)] items-center cursor-pointer justify-center relative',
'dark:bg-[var(--el-bg-color)]'
]"
to="/"
>
<img
src="@/assets/imgs/logo.png"
class="w-[calc(var(--logo-height)-10px)] h-[calc(var(--logo-height)-10px)]"
/>
<div
v-if="show"
:class="[ :class="[
'ml-10px text-16px font-700', prefixCls,
{ layout !== 'classic' ? `${prefixCls}__Top` : '',
'text-[var(--logo-title-text-color)]': layout === 'classic', 'flex !h-[var(--logo-height)] items-center cursor-pointer justify-center relative',
'text-[var(--top-header-text-color)]': 'dark:bg-[var(--el-bg-color)]'
layout === 'topLeft' || layout === 'top' || layout === 'cutMenu'
}
]" ]"
to="/"
> >
{{ title }} <img
</div> src="@/assets/imgs/logo.png"
</router-link> class="w-[calc(var(--logo-height)-10px)] h-[calc(var(--logo-height)-10px)]"
/>
<div
v-if="show"
:class="[
'ml-10px text-16px font-700',
{
'text-[var(--logo-title-text-color)]': layout === 'classic',
'text-[var(--top-header-text-color)]':
layout === 'topLeft' || layout === 'top' || layout === 'cutMenu'
}
]"
>
{{ title }}
</div>
</router-link>
</div>
</template> </template>