fix: remve watch prefix

pull/7871/head
luquechen 2024-11-08 10:11:15 +08:00
parent 7d0a68f242
commit dca49ae1a2
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export default function useClientCache<CacheType>(
const styleContext = useStyleInject();
const fullPathStr = shallowRef('');
const res = shallowRef<CacheType>();
watch([() => prefix, () => keyPath.value], () => {
watch(() => keyPath.value, () => {
fullPathStr.value = [prefix, ...keyPath.value].join('%');
}, { immediate: true });
const HMRUpdate = useHMR();