2025-07-12 19:41:58 +08:00
|
|
|
export default async function ({
|
|
|
|
|
$axios,
|
|
|
|
|
store
|
|
|
|
|
}) {
|
|
|
|
|
const footerInfo = await $axios.$get('/web/footerInfo')
|
|
|
|
|
store.commit('SET_FOOTER_INFO', footerInfo)
|
2025-07-29 21:29:20 +08:00
|
|
|
const pordCategory = await $axios.$get('/web/prodCategory?catgId=660179025d0e2e0e4263db0eec86a8cc')
|
|
|
|
|
store.commit('SET_FOOTER_PRODCAT', pordCategory)
|
2025-08-25 21:11:18 +08:00
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-12 19:41:58 +08:00
|
|
|
}
|