这样就会显示/index.html

export default new Router({
  routes: [
    {
      path:'/',
      redirect:{
        name:'index123'
      }
    },
    {
      path: '/index.html',
      name: 'index123',
      component: HelloWorld
    },
    {
      path: '/newDetail',
      name: 'newDetail',
      component: na
    },
Logo

前往低代码交流专区

更多推荐