Commit 47beb13a58b55dbbdfb37904ba2266deabc8741c

Authored by xingyu
1 parent 6db1f77d

fix: 打包后页面跳转问题

yudao-ui-admin-vue3/src/layout/components/Logo/src/Logo.vue
... ... @@ -55,31 +55,33 @@ watch(
55 55 </script>
56 56  
57 57 <template>
58   - <router-link
59   - :class="[
60   - prefixCls,
61   - layout !== 'classic' ? `${prefixCls}__Top` : '',
62   - 'flex !h-[var(--logo-height)] items-center cursor-pointer justify-center relative',
63   - 'dark:bg-[var(--el-bg-color)]'
64   - ]"
65   - to="/"
66   - >
67   - <img
68   - src="@/assets/imgs/logo.png"
69   - class="w-[calc(var(--logo-height)-10px)] h-[calc(var(--logo-height)-10px)]"
70   - />
71   - <div
72   - v-if="show"
  58 + <div>
  59 + <router-link
73 60 :class="[
74   - 'ml-10px text-16px font-700',
75   - {
76   - 'text-[var(--logo-title-text-color)]': layout === 'classic',
77   - 'text-[var(--top-header-text-color)]':
78   - layout === 'topLeft' || layout === 'top' || layout === 'cutMenu'
79   - }
  61 + prefixCls,
  62 + layout !== 'classic' ? `${prefixCls}__Top` : '',
  63 + 'flex !h-[var(--logo-height)] items-center cursor-pointer justify-center relative',
  64 + 'dark:bg-[var(--el-bg-color)]'
80 65 ]"
  66 + to="/"
81 67 >
82   - {{ title }}
83   - </div>
84   - </router-link>
  68 + <img
  69 + src="@/assets/imgs/logo.png"
  70 + class="w-[calc(var(--logo-height)-10px)] h-[calc(var(--logo-height)-10px)]"
  71 + />
  72 + <div
  73 + v-if="show"
  74 + :class="[
  75 + 'ml-10px text-16px font-700',
  76 + {
  77 + 'text-[var(--logo-title-text-color)]': layout === 'classic',
  78 + 'text-[var(--top-header-text-color)]':
  79 + layout === 'topLeft' || layout === 'top' || layout === 'cutMenu'
  80 + }
  81 + ]"
  82 + >
  83 + {{ title }}
  84 + </div>
  85 + </router-link>
  86 + </div>
85 87 </template>
... ...