去除定时夜间模式;无法在线看时给出错误提示;(同步更新)去除面板中的预览图

This commit is contained in:
chuzhongzai
2023-12-29 15:25:01 +08:00
parent f4b94a66b4
commit fb925886c5
3 changed files with 12 additions and 80 deletions
+7 -8
View File
@@ -132,10 +132,13 @@ const actions = {
context.commit("_setReadingGallery", gallery)
else
axios.post(GalleryManageUrl + "/cache?url=" + gallery.link).then((res) => {
gallery.pages = res.data.data.pages
setTimeout(() => {
context.commit("_setReadingGallery", gallery)
}, 100)
if (res.data.result === 'success') {
gallery.pages = res.data.data.pages
setTimeout(() => {
context.commit("_setReadingGallery", gallery)
}, 100)
} else
ElMessage.error(res.data.data)
})
},
alterAuthCode(context, AuthCode){
@@ -356,9 +359,6 @@ const mutations = {
_closeReader(state){
state.isReading = false;
},
_changeThumbnailGallery(state, gallery){
state.thumbnailGallery = gallery
},
_openHistoryPanel(state){
state.isShowHistory = true
},
@@ -372,7 +372,6 @@ const state = {
totalGalleryTask: [], //存放本子数据的数组
chosenGallery: false, //准备下载的本子
thumbnailGallery: {}, //缩略图本子
collectGallery: [], //收藏的本子
downloadGallery: [], //下载的本子
isSearch: false, //用于决定是否显示搜索结果