diff --git a/build/vite/plugin/hmr.ts b/build/vite/plugin/hmr.ts index 583106288a9eccd5737dacc53c2d6ac4914d164b..807fdb96a2cf421fd8e13e6f7ac2bb62c24bad03 100644 --- a/build/vite/plugin/hmr.ts +++ b/build/vite/plugin/hmr.ts @@ -13,8 +13,10 @@ export function configHmrPlugin(): Plugin { if (file.match(/xml$/)) return []; modules.forEach((m) => { - m.importedModules = new Set(); - m.importers = new Set(); + if (!m.url.match(/\.(css|less)/)) { + m.importedModules = new Set(); + m.importers = new Set(); + } }); return modules; diff --git a/src/design/ant/btn.less b/src/design/ant/btn.less index 9e4a5e185a1e9b5aea7d190a27c73a06709cd80c..3f6bae811d4e9990bf9117fb61c814504f91b893 100644 --- a/src/design/ant/btn.less +++ b/src/design/ant/btn.less @@ -185,7 +185,7 @@ } } - &-ghost { + &-background-ghost { color: @button-ghost-color; background-color: transparent; border-color: @button-ghost-color; @@ -193,7 +193,7 @@ &:hover, &:focus { - color: @button-ghost-hover-color; + color: @button-ghost-hover-color !important; background-color: @button-ghost-hover-bg-color; border-color: @button-ghost-hover-color; }