perf: Workspace update

This commit is contained in:
fit2cloud-chenyw
2025-07-13 16:00:04 +08:00
parent eb63032c81
commit 974b7880d6
@@ -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'))