<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
<script src="https://cdn.bootcss.com/vue-router/3.0.2/vue-router.js"></script>
</head>
<body>
<div id="hdcms">
<router-link to="/hdphp">HDPHP</router-link>
<router-link to="/hdcms">HDCMS</router-link>
<router-view></router-view>
</div>
<script>
const hdphp={ template:'<h1>hdphp</h1>'
}
const hdcms={ template:'<h1>hdcms</h1>'
} let routes=[
{path:'/hdphp',component:hdphp},
{path:'/hdcms',component:hdcms},
] let route = new VueRouter({ routes:routes
});
new Vue({ el:'#hdcms',
router:route
});
</script>
</body>
</html>