mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: can not load watch later list
This commit is contained in:
1
src/auto-imports.d.ts
vendored
1
src/auto-imports.d.ts
vendored
@@ -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']
|
||||
|
||||
@@ -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',
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user