私はアプリケーションを作成していますが、Signupをクリックするとregister()が実行され、約束を返してログインにルーティングしますルート。代わりに、同じサインアップページに滞在のVue.jsを使用してボタンをクリックした後に別のコンポーネントを読み込む方法
は、私は、ログインページ
register(){
axios.post('url', {
username: this.username,
password:this.password
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
あなたは 'vue-router'を使っていますか? – Bert
@ BertEvans..Yes私はvue-routerを使用しています – Artwell