mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
--fix bug 重复数据
This commit is contained in:
@@ -19,6 +19,16 @@ export function useInterval(fun, time) {
|
||||
return { start };
|
||||
}
|
||||
|
||||
export function useResetRef(initValue) {
|
||||
const valueRef = ref(initValue);
|
||||
|
||||
function reset() {
|
||||
valueRef.value = initValue;
|
||||
}
|
||||
|
||||
return Object.assign(valueRef, { reset });
|
||||
}
|
||||
|
||||
export function useTimeout(asyncFun, time) {
|
||||
const timer = ref();
|
||||
const maxCount = ref(0);
|
||||
|
||||
Reference in New Issue
Block a user