This commit is contained in:
syuilo 2020-09-21 10:31:00 +09:00
parent c4a83a563d
commit 2e4ccd8d13
21 changed files with 92 additions and 60 deletions

View file

@ -280,7 +280,8 @@ export default defineComponent({
},
async addAcount() {
os.modal(await import('./signin-dialog.vue')).$once('login', res => {
os.modal(await import('./signin-dialog.vue')).then(res => {
if (res == null) return;
this.$store.dispatch('addAcount', res);
os.dialog({
type: 'success',
@ -290,7 +291,8 @@ export default defineComponent({
},
async createAccount() {
os.modal(await import('./signup-dialog.vue')).$once('signup', res => {
os.modal(await import('./signup-dialog.vue')).then(res => {
if (res == null) return;
this.$store.dispatch('addAcount', res);
this.switchAccountWithToken(res.i);
});