File tree 1 file changed +9
-4
lines changed
src/pages/home/components
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -215,20 +215,25 @@ onMounted(() => {
215
215
</div >
216
216
<Transition name =" menu" >
217
217
<ul class =" py-[3px] flex nav-container" v-show =" item1.show" >
218
- <span
219
- @click =" toUrl(item2.link)"
218
+ <a
219
+ @click.prevent =" toUrl(item2.link)"
220
220
v-for =" item2 in item1.children"
221
221
:key =" item2.title"
222
+ :href =" item2.link"
222
223
:class =" { 'bg-[#dcdcdc]': $route.path.trim().startsWith(item2.link.trim()) }"
223
- class =" leading-4 navitem-flex hover:bg-[#dcdcdc] cursor-pointer pr-[10px] pl-[16px] block text-wrap select-none"
224
- >{{ item2.title }}</span >
224
+ class =" leading-4 navitem-flex hover:bg-[#dcdcdc] cursor-pointer pr-[10px] pl-[16px] block text-wrap select-none href-noline "
225
+ >{{ item2.title }}</a >
225
226
</ul >
226
227
</Transition >
227
228
</div >
228
229
</div >
229
230
</template >
230
231
231
232
<style scoped>
233
+ .href-noline {
234
+ text-decoration : none ;
235
+ }
236
+
232
237
.menu-enter-active {
233
238
overflow-y : hidden ;
234
239
animation : menuslide-in .15s linear ;
You can’t perform that action at this time.
0 commit comments