Skip to content

Commit d0eb28d

Browse files
authored
fix: The conversation page cannot be opened after three parties enter and refresh (#3608)
1 parent 48c59b5 commit d0eb28d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/router/chat/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,12 @@ router.beforeEach(
7575
return
7676
}
7777
if (p_token) {
78-
next({ ...to, query: to.query })
78+
const q = to.query
79+
delete q.token
80+
next({ ...to, query: q })
7981
} else {
8082
next()
8183
}
82-
8384
return
8485
}
8586
}

0 commit comments

Comments
 (0)