Home  >  Q&A  >  body text

javascript - How to refresh the current route in Vue

http://localhost:8080/#/hello

How to refresh the current route, not F5. .

Is there any way?

PHP中文网PHP中文网2710 days ago595

reply all(4)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:23:16

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

    reply
    0
  • 黄舟

    黄舟2017-05-19 10:23:16

    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?

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-19 10:23:16

    JS native method window.reload(false)

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-19 10:23:16

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

    reply
    0
  • Cancelreply