A
A
ArtMartiros2018-06-03 20:07:52
Vue.js
ArtMartiros, 2018-06-03 20:07:52

How to redirect to an external site before creating it with vue router?

I need to redirect to an external resource in this method, for example vk.com
beforeCreate() {
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Stolyarov, 2018-06-03
@Ni55aN

window.location.assign('http://vk.com')

R
Roman Kitaev, 2018-06-03
@deliro

What for? Is there a router guard?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question