vue-cli 项目中需要打开新页面,而并非原来的单页面应用;
百度查看文档解释vue 2.0版本只能通过a 标签打开;
<a class="link" :href="host+'/indexDetail'" target="_blank">
</a>
打开indexDetail新的页面
data:{
host: window.location.origin
}
vue-cli 项目中需要打开新页面,而并非原来的单页面应用;
百度查看文档解释vue 2.0版本只能通过a 标签打开;
<a class="link" :href="host+'/indexDetail'" target="_blank">
</a>
打开indexDetail新的页面
data:{
host: window.location.origin
}