vben
2020-12-25 4ff1c408dc1acfc49e0adc61dc2e539c0c198158
src/utils/helper/vueHelper.ts
@@ -9,6 +9,7 @@
  reactive,
  ComponentInternalInstance,
} from 'vue';
import { error } from '../log';
export function explicitComputed<T, S>(source: WatchSource<S>, fn: () => T) {
  const v = reactive<any>({ value: fn() });
@@ -39,6 +40,6 @@
export function isInSetup() {
  if (!getCurrentInstance()) {
    throw new Error('Please put useForm function in the setup function!');
    error('Please put useForm function in the setup function!');
  }
}