javascript - How to refresh the current route in Vue
PHP中文网
PHP中文网 2017-05-19 10:21:16
0
4
617

http://localhost:8080/#/hello

How to refresh the current route, not F5. .

Is there any way?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(4)
给我你的怀抱

A tricky way: https://jingyan.baidu.com/art...

黄舟

This purpose should not exist in the first place. If you just want to brush certain data, just write a function to brush it. Why brush the routing?

滿天的星座

JS native method window.reload(false)

漂亮男人

First configure routing and routing redirection, and then use this.$router.push('/') to perform a similar refresh operation.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template