鍍金池/ 問答/HTML/ iview中路由的使用?

iview中路由的使用?

export default new Router({
    mode: 'history',
    routes: [{
        path: '/',
        name: 'World',
        component: World
    }, {
        path: '/world',
        name: 'World',
        component: World
    }]
})
http://localhost:8080/ 可以訪問
http://localhost:8080/world 不可以訪問 是為什么啊
回答
編輯回答
青黛色

把history模式去掉

2017年12月23日 19:01