config router

144 阅读1分钟

config.js---

主题列表:juejin, github, smartblue, cyanosis, channing-cyan

next({ ...to, replace: true }) 重后台获取数据,解决addRoutes动态添加的路由被完全添加上去了,replace:true表示不能返回, ...to表示beforeEach和...to做比较直到 const path = require('path') parh在node_model里面查找 path.resolve 是命令行的路径 path.join(_dirname,xxx) _dirname变量是文件所在的路径

贡献主题:github.com/xitu/juejin…

theme: juejin highlight: juejin