需要对路由跳转做watch监听,每次监听进行页面加载刷新。
核心代码如下:
watch: { $route () { this.handleInit() } }, created () { this.handleInit() },
具体可参考:https://gitee.com/smallweigit/avue-cli/commit/4cce0958d965767cec13f321e2cea0a27ec325d5
在线演示:https://cli.avuejs.com/params/index
扫一扫访问 Blade技术社区 移动端