diff --git a/components/_util/cssinjs/hooks/useGlobalCache.tsx b/components/_util/cssinjs/hooks/useGlobalCache.tsx index 91eae343c..d05fce25b 100644 --- a/components/_util/cssinjs/hooks/useGlobalCache.tsx +++ b/components/_util/cssinjs/hooks/useGlobalCache.tsx @@ -12,7 +12,7 @@ export default function useClientCache( const styleContext = useStyleInject(); const fullPathStr = shallowRef(''); const res = shallowRef(); - watch([() => prefix, () => keyPath.value], () => { + watch(() => keyPath.value, () => { fullPathStr.value = [prefix, ...keyPath.value].join('%'); }, { immediate: true }); const HMRUpdate = useHMR();