Commit 08e103f9 by 田爽

跳转问题

parent 74e84621
......@@ -49,7 +49,7 @@
</p>
<ul>
<li v-for="(value, index) in item.list" :key="index" @click="lookDetail(value.id, item.title)">
<a :href="value.href" @click="goInfo(value.id, value.href, item.title)" v-html="value.title" target="_blank"></a>
<a @click="goInfo(value.id, value.href, item.title)" v-html="value.title" target="_blank"></a>
</li>
</ul>
</div>
......@@ -66,7 +66,7 @@
</p>
<ul>
<li v-for="(item, index) in qrCodeList" :key="'qrCodeList' + index" @click="lookDetail(item.id, '商品二维码在零售领域的应用')">
<a :href="item.href" v-html="item.title" target="_blank"></a>
<a @click="goInfo(item.id, item.href, '商品二维码在零售领域的应用')" v-html="item.title" target="_blank"></a>
</li>
</ul>
<img
......
......@@ -38,8 +38,8 @@ export default {
}
this.geDetailById();
window.onbeforeunload = () => {
localStorage.removeItem('msg'+this.id)
localStorage.removeItem('isList'+this.id)
localStorage.removeItem('msgRetail'+this.id)
localStorage.removeItem('isRetailList'+this.id)
}
},
methods: {
......
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