fix🐛: 修复无效引入文件

This commit is contained in:
零零零
2025-02-10 11:00:21 +08:00
parent 330eba0f5e
commit 1fbcc6fed3
2 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { dateUtil } from '@/utils/dateUtil'
import dayjs from 'dayjs'
import { reactive, toRefs } from 'vue'
import { tryOnMounted, tryOnUnmounted } from '@vueuse/core'
@@ -17,7 +17,7 @@ export const useNow = (immediate = true) => {
})
const update = () => {
const now = dateUtil()
const now = dayjs()
const h = now.format('HH')
const m = now.format('mm')

5
types/global.d.ts vendored
View File

@@ -1,4 +1,4 @@
export {}
export { }
declare global {
interface Fn<T = any> {
(...arg: T[]): T
@@ -14,6 +14,9 @@ declare global {
type LocaleType = 'zh-CN' | 'en'
declare type TimeoutHandle = ReturnType<typeof setTimeout>
declare type IntervalHandle = ReturnType<typeof setInterval>
type AxiosHeaders =
| 'application/json'
| 'application/x-www-form-urlencoded'