Vue——路由跳转到外网站
VueJs vue-router linking an external website地址:https://stackoverflow.com/questions/50633001/vuejs-vue-router-linking-an-external-websitedemo:如系统状态是需要点击跳转到外网站<v-list-item key="dashboard" to="/dashbo
·
VueJs vue-router linking an external website地址:https://stackoverflow.com/questions/50633001/vuejs-vue-router-linking-an-external-website
demo:如系统状态是需要点击跳转到外网站
<v-list-item key="dashboard" to="/dashboard" v-ripple="false">
<span class="iconfont icon-dashboard1"></span>
<span style="height: 30px; line-height: 32px">系统状态</span>
</v-list-item>
routes.js:
const PLACEHOLDER = { template: "<div>PLACEHOLDER</div>" };
export default [
{
path: "/dashboard",
component: () => PLACEHOLDER,
beforeEnter() {
location.href = "/dashboard";
},
meta: {
title: "alpha",
},
},
]
更多推荐
已为社区贡献27条内容
所有评论(0)