mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Workspace update
This commit is contained in:
@@ -37,6 +37,9 @@ const formatKeywords = (item: string) => {
|
||||
const emit = defineEmits(['selectWorkspace'])
|
||||
|
||||
const handleDefaultWorkspaceChange = (item: any) => {
|
||||
if (item.id.toString() === currentWorkspace.value.id.toString()) {
|
||||
return
|
||||
}
|
||||
currentWorkspace.value = { id: item.id, name: item.name }
|
||||
userApi.ws_change(item.id).then(() => {
|
||||
ElMessage.success(t('common.switch_success'))
|
||||
|
||||
Reference in New Issue
Block a user