feat: add layout and org
This commit is contained in:
@@ -11,6 +11,7 @@ import { CloseOutlined, MessageOutlined, SaveOutlined, SelectOutlined } from '@a
|
||||
import { useDeckPageStore } from './deck-store';
|
||||
import { FormModal } from './Model.tsx';
|
||||
import { useAiStore } from '@/pages/ai-chat/index.tsx';
|
||||
|
||||
export const useListener = (id?: string, opts?: any) => {
|
||||
const { refresh } = opts || {};
|
||||
const connected = useStore((state) => state.connected);
|
||||
@@ -269,14 +270,10 @@ export const Deck = () => {
|
||||
deckPageStore.setPageData([..._pageData]);
|
||||
};
|
||||
const init = async (data: any[]) => {
|
||||
console.log(
|
||||
'init',
|
||||
data.filter((item) => item.codeId),
|
||||
);
|
||||
// console.log('data', data, ref.current);
|
||||
const container = new ContainerEdit({
|
||||
root: ref.current!,
|
||||
data: data.filter((item) => item.codeId),
|
||||
data: data,
|
||||
showChild: true,
|
||||
// edit: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user