| 123456789101112131415161718192021 |
- 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
- }
- };
|