优化版本更新操作
This commit is contained in:
+11
-12
@@ -85,23 +85,19 @@ export const versionInfo = window.lxData.versionInfo = reactive<{
|
||||
history?: LX.VersionInfo[]
|
||||
} | null
|
||||
showModal: boolean
|
||||
isError: boolean
|
||||
isTimeOut: boolean
|
||||
isUnknow: boolean
|
||||
isDownloaded: boolean
|
||||
isDownloading: boolean
|
||||
isLatestVer: boolean
|
||||
isUnknown: boolean
|
||||
isLatest: boolean
|
||||
reCheck: boolean
|
||||
status: LX.UpdateStatus
|
||||
downloadProgress: ProgressInfo | null
|
||||
}>({
|
||||
version: pkg.version,
|
||||
newVersion: null,
|
||||
showModal: false,
|
||||
isError: false,
|
||||
isTimeOut: false,
|
||||
isUnknow: false,
|
||||
isDownloaded: false,
|
||||
isDownloading: false,
|
||||
isLatestVer: false,
|
||||
reCheck: false,
|
||||
isUnknown: false,
|
||||
isLatest: false,
|
||||
status: 'checking',
|
||||
downloadProgress: null,
|
||||
})
|
||||
export const userApi = reactive<{
|
||||
@@ -116,6 +112,9 @@ export const userApi = reactive<{
|
||||
apis: {},
|
||||
})
|
||||
|
||||
export const isShowChangeLog = ref(false)
|
||||
|
||||
|
||||
export const isFullscreen = ref(false)
|
||||
watch(isFullscreen, isFullscreen => {
|
||||
window.lx.rootOffset = window.dt || isFullscreen ? 0 : 8
|
||||
|
||||
@@ -202,7 +202,8 @@ export const setPlayMusicInfo = (listId: string | null, musicInfo: LX.Download.L
|
||||
* @param playMusicInfo playMusicInfo对象
|
||||
*/
|
||||
export const addPlayedList = (playMusicInfo: LX.Player.PlayMusicInfo) => {
|
||||
if (playedList.some(m => m.musicInfo === playMusicInfo.musicInfo)) return
|
||||
const id = playMusicInfo.musicInfo.id
|
||||
if (playedList.some(m => m.musicInfo.id === id)) return
|
||||
playedList.push(playMusicInfo)
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user