allow user to use chat role directly, no need to add to workspace

This commit is contained in:
RockYang
2024-07-16 18:28:08 +08:00
parent a6b9f57a50
commit 246b023624
7 changed files with 51 additions and 56 deletions

View File

@@ -166,6 +166,12 @@ watch(() => store.showLoginDialog, (newValue) => {
show.value = newValue
});
// 监听路由变化
router.beforeEach((to, from, next) => {
curPath.value = to.path
next();
});
if (curPath.value === "/external") {
curPath.value = router.currentRoute.value.query.url
}