| | |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import Sidebar from '/@/components/common/sidebar.vue' |
| | | import { EBizCode, ERouterName } from '/@/types' |
| | | import { EBizCode, ELocalStorageKey, ERouterName } from '/@/types' |
| | | import { getRoot } from '/@/root' |
| | | import { useMyStore } from '/@/store' |
| | | import { useConnectWebSocket } from '/@/hooks/use-connect-websocket' |
| | |
| | | |
| | | const root = getRoot() |
| | | const store = useMyStore() |
| | | const workspace_id = computed(() => store.state.common.projectId) |
| | | const workspace_id = computed(() => store.state.common.projectId || localStorage.getItem(ELocalStorageKey.WorkspaceId)) |
| | | const messageHandler = async (payload: any) => { |
| | | if (!payload) { |
| | | return |