Commit e25a779a by 林家欣

fix: 回归部分bug并修改头部导航逻辑为路由监听时出发

parent f14d53c5
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -89,9 +89,25 @@ export default {
preActive: "",
};
},
created() {
watch: {
$route: {
handler() {
this.initNav();
},
deep: true,
immediate: true,
}
},
mounted() {
window.addEventListener("click", this.handleWindowClick);
},
beforeDestroy() {
window.removeEventListener("click", this.handleWindowClick);
},
methods: {
// 监听路由 处理nav高亮 和面包屑 和subnav
nav.forEach((nav_) => {
initNav() {
nav.forEach((nav_) => {
if (this.$route.path.startsWith(nav_.link)) {
this.currentNav = nav_.id;
......@@ -118,14 +134,7 @@ export default {
}
}
});
},
mounted() {
window.addEventListener("click", this.handleWindowClick);
},
beforeDestroy() {
window.removeEventListener("click", this.handleWindowClick);
},
methods: {
},
handleWindowClick() {
// console.log('handleWindowClick', this.fromNav, this.preActive);
if (this.preActive && !this.fromNav) {
......
......@@ -22,7 +22,7 @@
<b>2.申请成为GS1系统成员(即申请UDI-DI厂商识别代码)</b>
</p>
<p>
--<a href="/Business/Guide1" target="_blank"
--<a href="/Business/Register" target="_blank"
>商品条码(厂商识别代码)在线申请</a
>
(也可通过微信公众号、小程序、中国编码APP申请)
......@@ -35,7 +35,7 @@
target="_blank"
>“UDI一站式服务”</a
>或联系<a
:href="`${urls.gs1cn}Service/Partners/List.aspx`"
href="/Service/Partners/List"
target="_blank"
>GS1标准服务提供商</a
></b
......@@ -80,7 +80,7 @@
<p>--确定是否需要直接标记</p>
<p>
--对条码印制质量进行检测(可联系<a
:href="`${urls.gs1cn}Service/jcyxz/Barcode.aspx`"
href="/Service/jcyxz/Barcode"
target="_blank"
>中国物品编码中心质量检测部</a
>进行测试)
......@@ -118,7 +118,7 @@
<li>
<p>
<a
href="/Manage/down/基于商品条码(GS1)标准的医疗器械唯一标识(UDI)实施指南.pdf"
:href="`${urls.gs1cn}/Manage/down/基于商品条码(GS1)标准的医疗器械唯一标识(UDI)实施指南.pdf`"
target="_blank"
>1.基于商品条码(GS1)标准的医疗器械唯一标识(UDI)实施指南</a
>
......@@ -127,7 +127,7 @@
<li>
<p>
<a
href="/Manage/down/基于商品条码(GS1)标准的医疗器械唯一标识(UDI)系统实施常见问题.pdf"
:href="`${urls.gs1cn}/Manage/down/基于商品条码(GS1)标准的医疗器械唯一标识(UDI)系统实施常见问题.pdf`"
target="_blank"
>2.基于商品条码(GS1)标准的医疗器械唯一标识(UDI)系统实施常见问题</a
>
......
......@@ -27,7 +27,7 @@
</p>
<p>
--<a
href="/Business/Guide1"
href="/Business/Register"
target="_blank"
>商品条码(厂商识别代码)在线申请</a
>
......@@ -73,7 +73,7 @@
</p>
<p>
--对条码印制质量进行检测(可联系<a
:href="`${urls.ancc}Service/jcyxz/Barcode.aspx`"
href="/Service/jcyxz/Barcode"
target="_blank"
>中国物品编码中心质量检测部</a
>进行测试)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment