show confirm to allow user to init categories after signed up

This commit is contained in:
MaysWind
2020-12-05 00:39:47 +08:00
parent 2691f7f025
commit 5de68fad1e
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -179,6 +179,10 @@ export default {
self.$toast('You have been successfully registered');
router.navigate('/');
self.$confirm('Do you want to initialize transaction categories now?', () => {
router.navigate('/category/default?type=0');
});
}).catch(error => {
self.$logger.error('failed to sign up', error);