UNPKG

@18ys/god

Version:

prefer to a global Object that can set some data to it, because vue3 don't have the global Object Vue.

11 lines (9 loc) 132 B
import { state } from './state'; function clean(key: string) { if (state[key]) { state[key] = null; } } export { clean }