diff --git a/src/views/demo/playground/page-cache/params.vue b/src/views/demo/playground/page-cache/params.vue index fb00d2f1..ab6f1b66 100644 --- a/src/views/demo/playground/page-cache/params.vue +++ b/src/views/demo/playground/page-cache/params.vue @@ -3,8 +3,18 @@

编号:{{id}}

在下面的输入框输入任意字符后,切换到其它页面,再回到此页时输入框文字保留,证明被缓存

- - + + +

el-input

+ +
+ +

html input

+
+ +
+
+
@@ -39,7 +49,6 @@ export default { }, // 第一次进入或从其他组件对应路由进入时触发 beforeRouteEnter (to, from, next) { - console.log('beforeRouteEnter => ', to) const id = to.params.id if (id) { next(instance => instance.switchData(id)) @@ -49,7 +58,6 @@ export default { }, // 在同一组件对应的多个路由间切换时触发 beforeRouteUpdate (to, from, next) { - console.log('beforeRouteUpdate => ', to) const id = to.params.id if (id) { this.switchData(id)