修改错误

This commit is contained in:
hejin 2025-08-25 21:37:09 +08:00
parent 15a6bb9149
commit 203d18b44a
6 changed files with 17 additions and 16 deletions

View File

@ -8,12 +8,13 @@
:key="index"
class="nav-link-item d-flex align-items-center justify-content-center"
>
<div @click="toChange" v-if="item.children.length === 0">
<nuxt-link
:to="item.to"
v-if="item.children.length === 0"
>
<span @click.stop="toChange">{{ item.label }}</span>
{{ item.label }}
</nuxt-link>
</div>
<b-nav-item-dropdown
v-else
:id="item.id"
@ -59,8 +60,6 @@ export default {
},
dropDownHide() {
this.isDropdown = false
console.log(this.isDropdown, '接受');
this.$emit('dropDownHide')
},
dropdownHide(e, item) {

View File

@ -6,12 +6,4 @@ export default async function ({
store.commit('SET_FOOTER_INFO', footerInfo)
const pordCategory = await $axios.$get('/web/prodCategory?catgId=660179025d0e2e0e4263db0eec86a8cc')
store.commit('SET_FOOTER_PRODCAT', pordCategory)
if (process.client) {
let link = document.querySelector("link[rel~='icon']") || document.createElement('link')
link.rel = 'icon'
link.href = footerInfo.icon
if (!link.parentElement) {
document.head.appendChild(link)
}
}
}

Binary file not shown.

View File

@ -64,6 +64,7 @@ export default {
{ src: "~plugins/element-ui.js", ssr: true },
{ src: "~plugins/vue-piczoom.js", ssr: false },
{ src: "~plugins/swiper.js", ssr: false },
{ src: "~plugins/siteicon.js", ssr: false },
],
/*
** Nuxt.js modules

9
plugins/siteicon.js Normal file
View File

@ -0,0 +1,9 @@
export default function ({store}) {
let footerInfo = store.state.footerInfo
let link = document.querySelector("link[rel~='icon']") || document.createElement('link')
link.rel = 'icon'
link.href = footerInfo.icon
if (!link.parentElement) {
document.head.appendChild(link)
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB