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
+1
View File
@@ -469,6 +469,7 @@ export default {
'Enable Animate': 'Enable Animate',
'Enable Auto Dark Mode': 'Enable Auto Dark Mode',
'You have been successfully registered': 'You have been successfully registered',
'Do you want to initialize transaction categories now?': 'Do you want to initialize transaction categories now?',
'Unable to sign up': 'Unable to sign up',
'User registration is disabled': 'User registration is disabled',
'Unable to get user profile': 'Unable to get user profile',
+1
View File
@@ -469,6 +469,7 @@ export default {
'Enable Animate': '启用动画',
'Enable Auto Dark Mode': '启用自动深色模式',
'You have been successfully registered': '注册成功',
'Do you want to initialize transaction categories now?': '您是否想现在初始化交易分类?',
'Unable to sign up': '无法注册',
'User registration is disabled': '用户注册已禁用',
'Unable to get user profile': '无法获取用户信息',
+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);