mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-28 06:31:46 +00:00
refactor(hooks): introduce vueuse, delete duplicate hooks
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useTimeout } from '/@/hooks/core/useTimeout';
|
||||
import { useTimeoutFn } from '@vueuse/core';
|
||||
import { tryOnUnmounted } from '/@/utils/helper/vueHelper';
|
||||
import { unref, Ref, nextTick } from 'vue';
|
||||
|
||||
@@ -9,7 +9,7 @@ export function useApexCharts(elRef: Ref<HTMLDivElement>) {
|
||||
|
||||
function setOptions(options: any) {
|
||||
nextTick(() => {
|
||||
useTimeout(() => {
|
||||
useTimeoutFn(() => {
|
||||
const el = unref(elRef);
|
||||
|
||||
if (!el || !unref(el)) return;
|
||||
|
Reference in New Issue
Block a user