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",
    },
  },
 ]
Logo

前往低代码交流专区

更多推荐