🐞 fix: 修复无法添加歌单

This commit is contained in:
imsyy
2023-12-20 10:06:40 +08:00
parent 2756313e4a
commit 461f216cab
9 changed files with 75 additions and 70 deletions

123
auto-imports.d.ts vendored
View File

@@ -5,65 +5,74 @@
// Generated by unplugin-auto-import // Generated by unplugin-auto-import
export {} export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: (typeof import("vue"))["EffectScope"];
const computed: typeof import('vue')['computed'] const computed: (typeof import("vue"))["computed"];
const createApp: typeof import('vue')['createApp'] const createApp: (typeof import("vue"))["createApp"];
const customRef: typeof import('vue')['customRef'] const customRef: (typeof import("vue"))["customRef"];
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineAsyncComponent: (typeof import("vue"))["defineAsyncComponent"];
const defineComponent: typeof import('vue')['defineComponent'] const defineComponent: (typeof import("vue"))["defineComponent"];
const effectScope: typeof import('vue')['effectScope'] const effectScope: (typeof import("vue"))["effectScope"];
const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentInstance: (typeof import("vue"))["getCurrentInstance"];
const getCurrentScope: typeof import('vue')['getCurrentScope'] const getCurrentScope: (typeof import("vue"))["getCurrentScope"];
const h: typeof import('vue')['h'] const h: (typeof import("vue"))["h"];
const inject: typeof import('vue')['inject'] const inject: (typeof import("vue"))["inject"];
const isProxy: typeof import('vue')['isProxy'] const isProxy: (typeof import("vue"))["isProxy"];
const isReactive: typeof import('vue')['isReactive'] const isReactive: (typeof import("vue"))["isReactive"];
const isReadonly: typeof import('vue')['isReadonly'] const isReadonly: (typeof import("vue"))["isReadonly"];
const isRef: typeof import('vue')['isRef'] const isRef: (typeof import("vue"))["isRef"];
const markRaw: typeof import('vue')['markRaw'] const markRaw: (typeof import("vue"))["markRaw"];
const nextTick: typeof import('vue')['nextTick'] const nextTick: (typeof import("vue"))["nextTick"];
const onActivated: typeof import('vue')['onActivated'] const onActivated: (typeof import("vue"))["onActivated"];
const onBeforeMount: typeof import('vue')['onBeforeMount'] const onBeforeMount: (typeof import("vue"))["onBeforeMount"];
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] const onBeforeUnmount: (typeof import("vue"))["onBeforeUnmount"];
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] const onBeforeUpdate: (typeof import("vue"))["onBeforeUpdate"];
const onDeactivated: typeof import('vue')['onDeactivated'] const onDeactivated: (typeof import("vue"))["onDeactivated"];
const onErrorCaptured: typeof import('vue')['onErrorCaptured'] const onErrorCaptured: (typeof import("vue"))["onErrorCaptured"];
const onMounted: typeof import('vue')['onMounted'] const onMounted: (typeof import("vue"))["onMounted"];
const onRenderTracked: typeof import('vue')['onRenderTracked'] const onRenderTracked: (typeof import("vue"))["onRenderTracked"];
const onRenderTriggered: typeof import('vue')['onRenderTriggered'] const onRenderTriggered: (typeof import("vue"))["onRenderTriggered"];
const onScopeDispose: typeof import('vue')['onScopeDispose'] const onScopeDispose: (typeof import("vue"))["onScopeDispose"];
const onServerPrefetch: typeof import('vue')['onServerPrefetch'] const onServerPrefetch: (typeof import("vue"))["onServerPrefetch"];
const onUnmounted: typeof import('vue')['onUnmounted'] const onUnmounted: (typeof import("vue"))["onUnmounted"];
const onUpdated: typeof import('vue')['onUpdated'] const onUpdated: (typeof import("vue"))["onUpdated"];
const provide: typeof import('vue')['provide'] const provide: (typeof import("vue"))["provide"];
const reactive: typeof import('vue')['reactive'] const reactive: (typeof import("vue"))["reactive"];
const readonly: typeof import('vue')['readonly'] const readonly: (typeof import("vue"))["readonly"];
const ref: typeof import('vue')['ref'] const ref: (typeof import("vue"))["ref"];
const resolveComponent: typeof import('vue')['resolveComponent'] const resolveComponent: (typeof import("vue"))["resolveComponent"];
const shallowReactive: typeof import('vue')['shallowReactive'] const shallowReactive: (typeof import("vue"))["shallowReactive"];
const shallowReadonly: typeof import('vue')['shallowReadonly'] const shallowReadonly: (typeof import("vue"))["shallowReadonly"];
const shallowRef: typeof import('vue')['shallowRef'] const shallowRef: (typeof import("vue"))["shallowRef"];
const toRaw: typeof import('vue')['toRaw'] const toRaw: (typeof import("vue"))["toRaw"];
const toRef: typeof import('vue')['toRef'] const toRef: (typeof import("vue"))["toRef"];
const toRefs: typeof import('vue')['toRefs'] const toRefs: (typeof import("vue"))["toRefs"];
const toValue: typeof import('vue')['toValue'] const toValue: (typeof import("vue"))["toValue"];
const triggerRef: typeof import('vue')['triggerRef'] const triggerRef: (typeof import("vue"))["triggerRef"];
const unref: typeof import('vue')['unref'] const unref: (typeof import("vue"))["unref"];
const useAttrs: typeof import('vue')['useAttrs'] const useAttrs: (typeof import("vue"))["useAttrs"];
const useCssModule: typeof import('vue')['useCssModule'] const useCssModule: (typeof import("vue"))["useCssModule"];
const useCssVars: typeof import('vue')['useCssVars'] const useCssVars: (typeof import("vue"))["useCssVars"];
const useDialog: typeof import('naive-ui')['useDialog'] const useDialog: (typeof import("naive-ui"))["useDialog"];
const useLoadingBar: typeof import('naive-ui')['useLoadingBar'] const useLoadingBar: (typeof import("naive-ui"))["useLoadingBar"];
const useMessage: typeof import('naive-ui')['useMessage'] const useMessage: (typeof import("naive-ui"))["useMessage"];
const useNotification: typeof import('naive-ui')['useNotification'] const useNotification: (typeof import("naive-ui"))["useNotification"];
const useSlots: typeof import('vue')['useSlots'] const useSlots: (typeof import("vue"))["useSlots"];
const watch: typeof import('vue')['watch'] const watch: (typeof import("vue"))["watch"];
const watchEffect: typeof import('vue')['watchEffect'] const watchEffect: (typeof import("vue"))["watchEffect"];
const watchPostEffect: typeof import('vue')['watchPostEffect'] const watchPostEffect: (typeof import("vue"))["watchPostEffect"];
const watchSyncEffect: typeof import('vue')['watchSyncEffect'] const watchSyncEffect: (typeof import("vue"))["watchSyncEffect"];
} }
// for type re-export // for type re-export
declare global { declare global {
// @ts-ignore // @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' export type {
Component,
ComponentPublicInstance,
ComputedRef,
InjectionKey,
PropType,
Ref,
VNode,
WritableComputedRef,
} from "vue";
} }

3
components.d.ts vendored
View File

@@ -10,7 +10,6 @@ declare module 'vue' {
AddPlaylist: typeof import('./src/components/Modal/AddPlaylist.vue')['default'] AddPlaylist: typeof import('./src/components/Modal/AddPlaylist.vue')['default']
CloudSongMatch: typeof import('./src/components/Modal/CloudSongMatch.vue')['default'] CloudSongMatch: typeof import('./src/components/Modal/CloudSongMatch.vue')['default']
CommentList: typeof import('./src/components/List/CommentList.vue')['default'] CommentList: typeof import('./src/components/List/CommentList.vue')['default']
copy: typeof import('./src/components/Global/Playlist copy.vue')['default']
CountDown: typeof import('./src/components/Player/CountDown.vue')['default'] CountDown: typeof import('./src/components/Player/CountDown.vue')['default']
CoverDropdown: typeof import('./src/components/Cover/CoverDropdown.vue')['default'] CoverDropdown: typeof import('./src/components/Cover/CoverDropdown.vue')['default']
CreatePlaylist: typeof import('./src/components/Modal/CreatePlaylist.vue')['default'] CreatePlaylist: typeof import('./src/components/Modal/CreatePlaylist.vue')['default']
@@ -32,7 +31,6 @@ declare module 'vue' {
NCard: typeof import('naive-ui')['NCard'] NCard: typeof import('naive-ui')['NCard']
NCheckbox: typeof import('naive-ui')['NCheckbox'] NCheckbox: typeof import('naive-ui')['NCheckbox']
NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDataTable: typeof import('naive-ui')['NDataTable']
NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDivider: typeof import('naive-ui')['NDivider'] NDivider: typeof import('naive-ui')['NDivider']
NDrawer: typeof import('naive-ui')['NDrawer'] NDrawer: typeof import('naive-ui')['NDrawer']
@@ -90,7 +88,6 @@ declare module 'vue' {
PlayerControl: typeof import('./src/components/Player/PlayerControl.vue')['default'] PlayerControl: typeof import('./src/components/Player/PlayerControl.vue')['default']
PlayerCover: typeof import('./src/components/Player/PlayerCover.vue')['default'] PlayerCover: typeof import('./src/components/Player/PlayerCover.vue')['default']
Playlist: typeof import('./src/components/Global/Playlist.vue')['default'] Playlist: typeof import('./src/components/Global/Playlist.vue')['default']
PlaylistOld: typeof import('./src/components/Global/Playlist-old.vue')['default']
PlaylistUpdate: typeof import('./src/components/Modal/PlaylistUpdate.vue')['default'] PlaylistUpdate: typeof import('./src/components/Modal/PlaylistUpdate.vue')['default']
PrivateFm: typeof import('./src/components/Player/PrivateFm.vue')['default'] PrivateFm: typeof import('./src/components/Player/PrivateFm.vue')['default']
Provider: typeof import('./src/components/Global/Provider.vue')['default'] Provider: typeof import('./src/components/Global/Provider.vue')['default']

View File

@@ -24,8 +24,6 @@ win:
icon: public/images/icons/favicon-512x512.png icon: public/images/icons/favicon-512x512.png
# 构建类型 # 构建类型
target: nsis target: nsis
# 管理员权限
requestedExecutionLevel: highestAvailable
# NSIS 安装器配置 # NSIS 安装器配置
nsis: nsis:
# 一键式安装程序还是辅助安装程序 # 一键式安装程序还是辅助安装程序

View File

@@ -32,7 +32,7 @@
> >
<template #prefix> <template #prefix>
<n-image <n-image
:src="item.coverImgUrl.replace(/^http:/, 'https:') + '?param=100y100'" :src="item?.coverSize?.s || '/images/pic/album.jpg?assest'"
class="cover" class="cover"
preview-disabled preview-disabled
lazy lazy
@@ -51,7 +51,7 @@
</template> </template>
<n-thing :title="item.name"> <n-thing :title="item.name">
<template #description> <template #description>
<n-text depth="3" class="size">{{ item.trackCount }} 首音乐</n-text> <n-text depth="3" class="size">{{ item.count }} 首音乐</n-text>
</template> </template>
</n-thing> </n-thing>
</n-list-item> </n-list-item>

View File

@@ -535,12 +535,12 @@ watch(
border-radius: 25px; border-radius: 25px;
.vue-slider-process { .vue-slider-process {
background-color: var(--main-color); background-color: var(--main-color);
transition: none !important; // transition: none !important;
} }
.vue-slider-dot { .vue-slider-dot {
width: 12px !important; width: 12px !important;
height: 12px !important; height: 12px !important;
transition: none !important; // transition: none !important;
} }
.vue-slider-dot-handle { .vue-slider-dot-handle {
transition: box-shadow 0.3s; transition: box-shadow 0.3s;

View File

@@ -346,12 +346,12 @@ const controlMove = (e) => {
background-color: var(--cover-second-color); background-color: var(--cover-second-color);
.vue-slider-process { .vue-slider-process {
background-color: var(--cover-main-color); background-color: var(--cover-main-color);
transition: none !important; // transition: none !important;
} }
.vue-slider-dot { .vue-slider-dot {
width: 10px !important; width: 10px !important;
height: 10px !important; height: 10px !important;
transition: none !important; // transition: none !important;
.vue-slider-dot-handle { .vue-slider-dot-handle {
background-color: var(--cover-main-color); background-color: var(--cover-main-color);
} }

View File

@@ -20,6 +20,7 @@ const formatData = (data, type = "playlist", noTracks = false) => {
(v.picUrl || (v.picUrl ||
v.coverUrl || v.coverUrl ||
v.coverImgUrl || v.coverImgUrl ||
v.imgurl ||
v.cover || v.cover ||
(v.album && v.album.picUrl) || (v.album && v.album.picUrl) ||
(v.al && (v.al.picUrl || v.al.xInfo?.picUrl))); (v.al && (v.al.picUrl || v.al.xInfo?.picUrl)));

View File

@@ -5,7 +5,7 @@
v-if="allAlbumData" v-if="allAlbumData"
:style="{ :style="{
height: `calc(100vh - ${ height: `calc(100vh - ${
Object.keys(music.playSongData)?.length && status.showPlayBar ? 345 : 265 Object.keys(music.playSongData)?.length && status.showPlayBar ? 380 : 300
}px)`, }px)`,
}" }"
class="local-album" class="local-album"

View File

@@ -6,7 +6,7 @@
class="local-artists" class="local-artists"
:style="{ :style="{
height: `calc(100vh - ${ height: `calc(100vh - ${
Object.keys(music.playSongData)?.length && status.showPlayBar ? 345 : 265 Object.keys(music.playSongData)?.length && status.showPlayBar ? 380 : 300
}px)`, }px)`,
}" }"
type="card" type="card"