From eff66be0370b0eb042f387f780aaa7b544647f44 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Wed, 18 Jun 2025 13:27:22 +0800 Subject: [PATCH] temp --- package.json | 4 ++-- src/apps/ai-editor/index.tsx | 2 +- src/apps/ai-editor/store/menu.ts | 2 ++ src/apps/draw/App.tsx | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 19ea59d..646fec6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/ai-pages", - "version": "0.0.2", + "version": "0.0.3", "description": "", "main": "index.js", "basename": "/root/ai-pages", @@ -8,7 +8,7 @@ "dev": "astro dev", "build": "astro build", "preview": "astro preview", - "pub": "ev deploy ./dist -k ai-pages -v 0.0.2 -u", + "pub": "ev deploy ./dist -k ai-pages -v 0.0.3 -u", "git:submodule": "git submodule update --init --recursive", "sn": "pnpm dlx shadcn@latest add " }, diff --git a/src/apps/ai-editor/index.tsx b/src/apps/ai-editor/index.tsx index 21d38b0..5c49d0f 100644 --- a/src/apps/ai-editor/index.tsx +++ b/src/apps/ai-editor/index.tsx @@ -24,7 +24,7 @@ export const AIEditor = () => { return (
- AI Editor + AI Editor [Dev]
diff --git a/src/apps/ai-editor/store/menu.ts b/src/apps/ai-editor/store/menu.ts index 7665633..8d7b2d1 100644 --- a/src/apps/ai-editor/store/menu.ts +++ b/src/apps/ai-editor/store/menu.ts @@ -58,6 +58,7 @@ class Status { const status = new Status(); export const init = async (resource: string = '', prefix: string = '') => { + console.log('init menu', resource, prefix); const { setMenu, setCurrentPath, setLoading } = useMenuStore.getState(); let me = await queryLogin.checkLocalUser(); const isInitialized = status.isInitialized; @@ -74,6 +75,7 @@ export const init = async (resource: string = '', prefix: string = '') => { if (prefix) { queryResources.setPrefix(prefix); } + console.log('queryResources', queryResources.prefix); const res = await queryResources.getList(resource, data); // @ts-ignore if (res?.status === 404) { diff --git a/src/apps/draw/App.tsx b/src/apps/draw/App.tsx index 961e399..4e16eff 100644 --- a/src/apps/draw/App.tsx +++ b/src/apps/draw/App.tsx @@ -9,7 +9,7 @@ import { useShallow } from 'zustand/shallow'; import { toast } from 'react-toastify'; // @ts-ignore -window.EXCALIDRAW_ASSET_PATH = 'https://esm.sh/@excalidraw/excalidraw@0.18.0/dist/prod/'; +window.EXCALIDRAW_ASSET_PATH = 'https://esm.xiongxiao.me/@excalidraw/excalidraw@0.18.0/dist/prod/'; export const App = () => { return (