fix: update import path and modify AIEditorLink URL structure

This commit is contained in:
2026-01-30 17:36:36 +08:00
parent 0de344c7ad
commit a4e17023d0
2 changed files with 2 additions and 2 deletions

2
next-env.d.ts vendored
View File

@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./dist/dev/types/routes.d.ts";
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@@ -35,7 +35,7 @@ export const AIEditorLink = (props: Props) => {
folder = folder.slice(0, -1);
}
let baseUri = location.origin;
const openUrl = `${baseUri}/root/ai-pages/ai-editor/?folder=${folder}/`;
const openUrl = `${baseUri}/root/codepod/?folder=${folder}/`;
openLink(openUrl, '_blank');
}}>
<Folder className='h-4 w-4' />