fix: 删除 4 个已清理 Modal 的残留 import/ref/template(ScheduleList + RequestForm)
This commit is contained in:
@@ -849,10 +849,6 @@ import Icon from '../UI/Icon.vue'
|
||||
import { convertToHttps, validateUrl } from '~/utils/url'
|
||||
|
||||
import ImportSongsModal from './ImportSongsModal.vue'
|
||||
import NeteaseLoginModal from './NeteaseLoginModal.vue'
|
||||
import PodcastEpisodesModal from './PodcastEpisodesModal.vue'
|
||||
import BilibiliEpisodesModal from './BilibiliEpisodesModal.vue'
|
||||
import RecentSongsModal from './RecentSongsModal.vue'
|
||||
import PlaylistSelectionModal from './PlaylistSelectionModal.vue'
|
||||
import UserSearchModal from '../Common/UserSearchModal.vue'
|
||||
import NeteaseUploadDialog from './NeteaseUploadDialog.vue'
|
||||
@@ -980,12 +976,10 @@ const neteaseCookie = ref('')
|
||||
const searchType = ref(1) // 1: 单曲, 1009: 播客/电台
|
||||
|
||||
// 播客弹窗相关
|
||||
const showPodcastModal = ref(false)
|
||||
const selectedPodcastId = ref('')
|
||||
const selectedPodcastName = ref('')
|
||||
const podcastCookie = ref('')
|
||||
|
||||
const showRecentSongsModal = ref(false)
|
||||
const showPlaylistModal = ref(false)
|
||||
const showUserSearchModal = ref(false)
|
||||
const collaborators = ref([])
|
||||
@@ -1020,7 +1014,6 @@ const searchError = ref('')
|
||||
// 手动输入相关
|
||||
const showManualModal = ref(false)
|
||||
|
||||
const showBilibiliEpisodesModal = ref(false)
|
||||
const selectedBilibiliVideo = ref(null)
|
||||
const bilibiliEpisodes = ref([])
|
||||
const manualArtist = ref('')
|
||||
@@ -1584,7 +1577,6 @@ const openSimilarEpisodesModal = (group) => {
|
||||
|
||||
selectedBilibiliVideo.value = videoData
|
||||
bilibiliEpisodes.value = videoData.pages
|
||||
showBilibiliEpisodesModal.value = true
|
||||
}
|
||||
|
||||
// 处理剧集投票
|
||||
@@ -1684,7 +1676,6 @@ const handleLikeFromSearch = async (song, originalResult = null) => {
|
||||
if (originalResult && isBilibiliMultiP(originalResult)) {
|
||||
selectedBilibiliVideo.value = originalResult
|
||||
bilibiliEpisodes.value = originalResult.pages
|
||||
showBilibiliEpisodesModal.value = true
|
||||
return
|
||||
}
|
||||
|
||||
@@ -2127,7 +2118,6 @@ const submitSong = async (result, options = {}) => {
|
||||
selectedPodcastId.value = result.id || result.musicId
|
||||
selectedPodcastName.value = result.title || result.song || result.name
|
||||
podcastCookie.value = neteaseCookie.value
|
||||
showPodcastModal.value = true
|
||||
return
|
||||
}
|
||||
|
||||
@@ -2141,7 +2131,6 @@ const submitSong = async (result, options = {}) => {
|
||||
console.log('打开 Bilibili 剧集列表:', result)
|
||||
selectedBilibiliVideo.value = result
|
||||
bilibiliEpisodes.value = result.pages
|
||||
showBilibiliEpisodesModal.value = true
|
||||
return
|
||||
}
|
||||
|
||||
@@ -2381,7 +2370,6 @@ const handleBilibiliEpisodeSelect = async (episode) => {
|
||||
})
|
||||
|
||||
if (success) {
|
||||
showBilibiliEpisodesModal.value = false
|
||||
if (bilibiliModalRef.value && bilibiliModalRef.value.resetSubmissionState) {
|
||||
bilibiliModalRef.value.resetSubmissionState()
|
||||
}
|
||||
@@ -2418,7 +2406,6 @@ const playlistModalRef = ref(null)
|
||||
const handlePodcastSubmit = async (song) => {
|
||||
const success = await submitSong(song, { isPodcastEpisode: true })
|
||||
if (success) {
|
||||
showPodcastModal.value = false
|
||||
} else {
|
||||
// 如果失败,重置模态框内的提交状态
|
||||
if (podcastModalRef.value && podcastModalRef.value.resetSubmissionState) {
|
||||
@@ -2437,7 +2424,6 @@ const handlePodcastPlay = async (song) => {
|
||||
const handleRecentSongSubmit = async (song) => {
|
||||
const success = await submitSong(song, { isPodcastEpisode: false, isDirectSubmit: true })
|
||||
if (success) {
|
||||
showRecentSongsModal.value = false
|
||||
} else {
|
||||
// 如果失败,重置模态框内的提交状态
|
||||
if (recentSongsModalRef.value && recentSongsModalRef.value.resetSubmissionState) {
|
||||
|
||||
Reference in New Issue
Block a user