fix🐛: 修复无效引入文件
This commit is contained in:
@@ -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
5
types/global.d.ts
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user