Vue methods: {} can you just jump out of the chain?

vue methods: can I skip the chain directly in {}? if I directly execute this method, jump to
window.location.href= "baidu.com" on the home page of Baidu; is that all right

May.17,2022

window.location.href= "https://www.baidu.com"


vuejs is a single page application. For redirection within the application, you can use router-link tag external jump window.location.href= 'url'

.
Menu