修改错误
This commit is contained in:
parent
15a6bb9149
commit
203d18b44a
@ -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) {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
BIN
nuxt-dist.zip
BIN
nuxt-dist.zip
Binary file not shown.
@ -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
9
plugins/siteicon.js
Normal 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 |
Loading…
Reference in New Issue
Block a user