export default new Router({ // 路由模式:hash(默认),history模式 mode: 'history', // 修改路由高亮样式,默认值为'router-link-active' linkActiveClass: 'active' //路由规则 routes:[ { path:'/', name:'index', component:'Index' } ], })...
vue: localhost:8080/#/ 默认会有#,实际上是路由的哈希。 有两种模式,一种是history,直接用url地址,第二种就是hash,默认用的是hash 修改方法: 在index.jsp中:指定路由的模式,指定模式为history (默认的mode:hash)
解决IDEA搭建web项目后访问localhost:8080直接进到项目首页问题 2019-12-04 00:22 −问题描述: 在配置好tomcat后访问localhost:8080直接进入项目首页而不是tomcat首页 解决方法: 1,点击server configurations 2 ,在图中Application context:... NullPoint_02 ...