From f3195b0b0ff02c2183187b87b02b16817e6c8a1a Mon Sep 17 00:00:00 2001 From: sealday Date: Wed, 8 May 2024 20:34:28 +0800 Subject: [PATCH] fix: preset error (#930) Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/930 --- packages/core/app/client/.umirc.ts | 1 - packages/presets/hera-rental/src/client/index.ts | 2 +- packages/presets/hera-rental/src/server/index.ts | 2 +- packages/presets/sancongtou/src/client/index.ts | 2 +- packages/presets/sancongtou/src/server/index.ts | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/core/app/client/.umirc.ts b/packages/core/app/client/.umirc.ts index b42a2e3f7..70203b453 100644 --- a/packages/core/app/client/.umirc.ts +++ b/packages/core/app/client/.umirc.ts @@ -57,7 +57,6 @@ export default defineConfig({ proxy: { ...umiConfig.proxy, }, - publicPath: 'auto', fastRefresh: false, // 热更新会导致 Context 丢失,不开启 mfsu: false, esbuildMinifyIIFE: true, diff --git a/packages/presets/hera-rental/src/client/index.ts b/packages/presets/hera-rental/src/client/index.ts index 182ea60d6..19ca32d3a 100644 --- a/packages/presets/hera-rental/src/client/index.ts +++ b/packages/presets/hera-rental/src/client/index.ts @@ -1,3 +1,3 @@ -import { TachyBaseClientPresetPlugin } from 'packages/presets/base/src/client'; +import { TachyBaseClientPresetPlugin } from '@tachybase/preset-tachybase/client'; export class PluginRental extends TachyBaseClientPresetPlugin {} diff --git a/packages/presets/hera-rental/src/server/index.ts b/packages/presets/hera-rental/src/server/index.ts index 3c3743045..4c4a5d412 100644 --- a/packages/presets/hera-rental/src/server/index.ts +++ b/packages/presets/hera-rental/src/server/index.ts @@ -1,4 +1,4 @@ -import PresetTachyBase from 'packages/presets/base/src'; +import PresetTachyBase from '@tachybase/preset-tachybase'; import _ from 'lodash'; export class PluginRental extends PresetTachyBase { diff --git a/packages/presets/sancongtou/src/client/index.ts b/packages/presets/sancongtou/src/client/index.ts index 182ea60d6..19ca32d3a 100644 --- a/packages/presets/sancongtou/src/client/index.ts +++ b/packages/presets/sancongtou/src/client/index.ts @@ -1,3 +1,3 @@ -import { TachyBaseClientPresetPlugin } from 'packages/presets/base/src/client'; +import { TachyBaseClientPresetPlugin } from '@tachybase/preset-tachybase/client'; export class PluginRental extends TachyBaseClientPresetPlugin {} diff --git a/packages/presets/sancongtou/src/server/index.ts b/packages/presets/sancongtou/src/server/index.ts index ee6a59247..84f5a3583 100644 --- a/packages/presets/sancongtou/src/server/index.ts +++ b/packages/presets/sancongtou/src/server/index.ts @@ -1,4 +1,4 @@ -import PresetTachyBase from 'packages/presets/base/src'; +import PresetTachyBase from '@tachybase/preset-tachybase'; import _ from 'lodash'; export class PluginRental extends PresetTachyBase {