Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed Jun 1, 2024
1 parent 3457e05 commit 2af635e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-chat-x-vue/src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async function submitForm() {
await libp2pManager.createActivateUserDb(chatUser, chatUser.id);
await libp2pManager.createLibp2pNode(chatUser.peerId);
await libp2pManager.startLibp2pNode();
libp2pManager.setChatUser(chatUser);
await libp2pManager.setChatUser(chatUser);
} else if (form.loginType === "import") {
await databaseManager.importDB(dbUploadFile.value!.raw!);
const interval = async () => {
Expand All @@ -200,7 +200,7 @@ async function submitForm() {
const peerId = peerIdFromPeerId(currentUser_.peerId);
await libp2pManager.createLibp2pNode(peerId);
await libp2pManager.startLibp2pNode();
libp2pManager.setChatUser(currentUser_);
await libp2pManager.setChatUser(currentUser_);
} else {
ElMessage({
type: "info",
Expand Down

0 comments on commit 2af635e

Please sign in to comment.