fix: after register page empty

This commit is contained in:
lejianwen
2025-05-25 17:11:57 +08:00
parent 269bd0fd87
commit 4b818f73e5
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -86,7 +86,7 @@
}
const html = computed(_ => marked(appStore.setting.hello))
const html = computed(_ => marked(appStore.setting.hello||''))
</script>
+2
View File
@@ -35,6 +35,7 @@
import { useRoute, useRouter } from 'vue-router'
import { register } from '@/api/user'
import { useUserStore } from '@/store/user'
import { useAppStore } from '@/store/app'
const router = useRouter()
const userStore = useUserStore()
@@ -78,6 +79,7 @@
return
}
userStore.saveUserData(res.data)
useAppStore().loadConfig()
ElMessage.success('Submit')
router.push('/')
}