import { isUnset as isStoreUnset } from "@/store"; import { nextTick } from "vue"; export const unsetFactory = () => { let isUnSet = false; const unSet = (fn: () => void) => { console.error('unset') const pop = isStoreUnset.push(true) isUnSet = true; fn(); nextTick(pop) }; return { get isUnSet() { return isStoreUnset.value }, unSet } };