修改错误
This commit is contained in:
parent
15a6bb9149
commit
203d18b44a
@ -8,12 +8,13 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
class="nav-link-item d-flex align-items-center justify-content-center"
|
class="nav-link-item d-flex align-items-center justify-content-center"
|
||||||
>
|
>
|
||||||
<nuxt-link
|
<div @click="toChange" v-if="item.children.length === 0">
|
||||||
:to="item.to"
|
<nuxt-link
|
||||||
v-if="item.children.length === 0"
|
:to="item.to"
|
||||||
>
|
>
|
||||||
<span @click.stop="toChange">{{ item.label }}</span>
|
{{ item.label }}
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
|
</div>
|
||||||
<b-nav-item-dropdown
|
<b-nav-item-dropdown
|
||||||
v-else
|
v-else
|
||||||
:id="item.id"
|
:id="item.id"
|
||||||
@ -59,8 +60,6 @@ export default {
|
|||||||
},
|
},
|
||||||
dropDownHide() {
|
dropDownHide() {
|
||||||
this.isDropdown = false
|
this.isDropdown = false
|
||||||
console.log(this.isDropdown, '接受');
|
|
||||||
|
|
||||||
this.$emit('dropDownHide')
|
this.$emit('dropDownHide')
|
||||||
},
|
},
|
||||||
dropdownHide(e, item) {
|
dropdownHide(e, item) {
|
||||||
|
@ -6,12 +6,4 @@ export default async function ({
|
|||||||
store.commit('SET_FOOTER_INFO', footerInfo)
|
store.commit('SET_FOOTER_INFO', footerInfo)
|
||||||
const pordCategory = await $axios.$get('/web/prodCategory?catgId=660179025d0e2e0e4263db0eec86a8cc')
|
const pordCategory = await $axios.$get('/web/prodCategory?catgId=660179025d0e2e0e4263db0eec86a8cc')
|
||||||
store.commit('SET_FOOTER_PRODCAT', pordCategory)
|
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/element-ui.js", ssr: true },
|
||||||
{ src: "~plugins/vue-piczoom.js", ssr: false },
|
{ src: "~plugins/vue-piczoom.js", ssr: false },
|
||||||
{ src: "~plugins/swiper.js", ssr: false },
|
{ src: "~plugins/swiper.js", ssr: false },
|
||||||
|
{ src: "~plugins/siteicon.js", ssr: false },
|
||||||
],
|
],
|
||||||
/*
|
/*
|
||||||
** Nuxt.js modules
|
** 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