This commit is contained in:
wangchengming 2024-12-13 10:20:08 +08:00
parent 0187cc5289
commit 15ad33aa82

View File

@ -29,7 +29,7 @@
:key="menu.path" :key="menu.path"
class="nav-menu" class="nav-menu"
:class="{ 'current-route': $route.path.startsWith(menu.path) && menu.path !== '/' }" :class="{ 'current-route': $route.path.startsWith(menu.path) && menu.path !== '/' }"
@click.stop="menu.children || $router.push({ path: menu.hash ? '' : menu.path , hash: menu?.hash || ''})" @click.stop="menu.children || menu.jump ? winOpen(menu.jump) : $router.push({ path: menu.hash ? '' : menu.path , hash: menu?.hash || ''})"
> >
<span>{{ menu.title }}</span> <span>{{ menu.title }}</span>
<div <div
@ -127,6 +127,10 @@ export default {
], ],
}, },
{ title: '联系我们', path: '/fshg.cc/ContactUs' }, { title: '联系我们', path: '/fshg.cc/ContactUs' },
{
title: '供应商登录',
jump: 'http://117.72.41.220:9097',
},
{ {
title: '登录', title: '登录',
path: '/', path: '/',
@ -151,6 +155,9 @@ export default {
a.click(); a.click();
document.body.removeChild(a); document.body.removeChild(a);
}, },
winOpen(url) {
if(url) window.open(url ,'_blank')
}
}, },
}; };
</script> </script>