fix: can not load watch later list

This commit is contained in:
Stephen Zhou
2024-04-26 11:42:16 +08:00
parent a4e96c825f
commit ff8056e01c
3 changed files with 2 additions and 3 deletions

View File

@@ -42,7 +42,6 @@ declare global {
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const resolveComponent: typeof import('vue')['resolveComponent']
const resolveDirective: typeof import('vue')['resolveDirective']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']

View File

@@ -61,7 +61,7 @@ enum VIDEO {
enum WATCHLATER {
SAVE_TO_WATCH_LATER = 'saveToWatchLater',
REMOVE_FROM_WATCH_LATER = 'removeFromWatchLater',
GET_ALL_WATCHLATER_LIST = 'getAllWatchLaterList',
GET_ALL_WATCH_LATER_LIST = 'getAllWatchLaterList',
CLEAR_ALL_WATCH_LATER = 'clearAllWatchLater',
}

View File

@@ -33,7 +33,7 @@ function initPageAction() {
function getAllWatchLaterList() {
isLoading.value = true
watchLaterList.length = 0
api.watchlater.getAllWatchlaterList()
api.watchlater.getAllWatchLaterList()
.then((res: WatchLaterResult) => {
if (res.code === 0)
Object.assign(watchLaterList, res.data.list)