perf: Reload after switch workspace

This commit is contained in:
fit2cloud-chenyw
2025-07-17 15:51:20 +08:00
parent e899ab3b1d
commit a4e6cad499
@@ -43,6 +43,7 @@ const handleDefaultWorkspaceChange = (item: any) => {
currentWorkspace.value = { id: item.id, name: item.name }
userApi.ws_change(item.id).then(() => {
ElMessage.success(t('common.switch_success'))
location.reload()
})
emit('selectWorkspace', item)
}