前端配置HTML5 history路由流程

優勢:美化url地址   參考網址: HTML5 History 模式 配置方法:  第一步 前端修改路由模式 export default new Router({   mode: 'history', //後端支持可開   scrollBehavior: () => ({ y: 0 }),   routes: constantRouterMap   }) 第二步 後臺修改apache服務器配置
相關文章
相關標籤/搜索