diff --git a/src/client/plugin/shop/shop.tsx b/src/client/plugin/shop/shop.tsx index c275ae2..5b3aff7 100644 --- a/src/client/plugin/shop/shop.tsx +++ b/src/client/plugin/shop/shop.tsx @@ -5,8 +5,8 @@ import { Scroll, TextContent } from '@user/client-base'; import { IHeroState } from '@user/data-base'; import { IHeroAttr } from '@user/data-common'; import { IUIPropsBase } from '@user/client-modules'; -import { IShopState, IShopSystem } from '@dp/shop'; -import { FULL_LOC, MAIN_WIDTH, RENDER_WIDTH } from '@/client'; +import { IShopState, IShopSystem } from '@/data/plugin/shop'; +import { FULL_LOC, MAIN_HEIGHT, MAIN_WIDTH, RENDER_WIDTH } from '@/client'; export interface IShopProps extends IUIPropsBase { /** 商店状态对象 */ diff --git a/vite.config.ts b/vite.config.ts index c552ac3..30c206c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -26,14 +26,6 @@ const aliasesUser = glob.sync('packages-user/*/src').map((srcPath) => { }; }); -const aliasesDP = glob.sync('src/data/plugin/*').map((srcPath) => { - const packageName = path.basename(path.dirname(srcPath)); - return { - find: `@dp/${packageName}`, - replacement: path.resolve(__dirname, srcPath), - }; -}); - // https://vitejs.dev/config/ export default defineConfig({ plugins: [ @@ -49,7 +41,6 @@ export default defineConfig({ alias: [ ...aliases, ...aliasesUser, - ...aliasesDP, { find: '@/', replacement: path.resolve(__dirname, 'src/')