diff --git a/src/renderer/api/music.ts b/src/renderer/api/music.ts index b84e5b1..96bd867 100644 --- a/src/renderer/api/music.ts +++ b/src/renderer/api/music.ts @@ -1,5 +1,4 @@ import { ILyric } from '@/type/lyric'; -import { IPlayMusicUrl } from '@/type/music'; import { isElectron } from '@/utils'; import request from '@/utils/request'; import requestMusic from '@/utils/request_music'; diff --git a/src/renderer/components.d.ts b/src/renderer/components.d.ts index f817464..067cd58 100644 --- a/src/renderer/components.d.ts +++ b/src/renderer/components.d.ts @@ -7,36 +7,9 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { - NAvatar: typeof import('naive-ui')['NAvatar'] - NButton: typeof import('naive-ui')['NButton'] - NButtonGroup: typeof import('naive-ui')['NButtonGroup'] - NCheckbox: typeof import('naive-ui')['NCheckbox'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] - NDrawer: typeof import('naive-ui')['NDrawer'] - NDropdown: typeof import('naive-ui')['NDropdown'] - NEllipsis: typeof import('naive-ui')['NEllipsis'] - NEmpty: typeof import('naive-ui')['NEmpty'] - NForm: typeof import('naive-ui')['NForm'] - NFormItem: typeof import('naive-ui')['NFormItem'] - NImage: typeof import('naive-ui')['NImage'] - NInput: typeof import('naive-ui')['NInput'] - NInputNumber: typeof import('naive-ui')['NInputNumber'] - NLayout: typeof import('naive-ui')['NLayout'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] - NModal: typeof import('naive-ui')['NModal'] - NPopover: typeof import('naive-ui')['NPopover'] - NRadio: typeof import('naive-ui')['NRadio'] - NRadioGroup: typeof import('naive-ui')['NRadioGroup'] - NScrollbar: typeof import('naive-ui')['NScrollbar'] - NSelect: typeof import('naive-ui')['NSelect'] - NSlider: typeof import('naive-ui')['NSlider'] - NSpace: typeof import('naive-ui')['NSpace'] - NSpin: typeof import('naive-ui')['NSpin'] - NSwitch: typeof import('naive-ui')['NSwitch'] - NTag: typeof import('naive-ui')['NTag'] - NTooltip: typeof import('naive-ui')['NTooltip'] - NVirtualList: typeof import('naive-ui')['NVirtualList'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/src/renderer/utils/update.ts b/src/renderer/utils/update.ts index 53d12f0..24250ee 100644 --- a/src/renderer/utils/update.ts +++ b/src/renderer/utils/update.ts @@ -79,7 +79,7 @@ export const getLatestReleaseInfo = async (): Promise /** * 格式化时间 */ -const formatDate = (dateStr: string): string => { +export const formatDate = (dateStr: string): string => { return useDateFormat(new Date(dateStr), 'YYYY-MM-DD HH:mm').value; };