refactor(projects): 抽离格式化相关依赖配置

This commit is contained in:
Soybean
2022-08-10 21:31:59 +08:00
parent 16dce9a4ce
commit f4d37cf7f0
78 changed files with 324 additions and 437 deletions

View File

@ -1,4 +1,4 @@
import { ref, computed } from 'vue';
import { computed, ref } from 'vue';
import { useBoolean } from '../common';
/**
@ -7,7 +7,7 @@ import { useBoolean } from '../common';
*/
export default function useCountDown(second: number) {
if (second <= 0 && second % 1 !== 0) {
throw Error('倒计时的时间应该为一个正整数!');
throw new Error('倒计时的时间应该为一个正整数!');
}
const { bool: isComplete, setTrue, setFalse } = useBoolean(false);

View File

@ -1,4 +1,4 @@
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
/**
* 绘制图形验证码

View File

@ -1,4 +1,4 @@
import { provide, inject } from 'vue';
import { inject, provide } from 'vue';
import type { InjectionKey } from 'vue';
/** 创建共享上下文状态 */