diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue
index 96ca1da..09a15e8 100644
--- a/src/components/DashBoard.vue
+++ b/src/components/DashBoard.vue
@@ -5,7 +5,7 @@
-
+
链接:
@@ -14,7 +14,7 @@
- 里站搜索
+ 在线搜索
修改授权码
删除本地授权码
配置
@@ -24,15 +24,15 @@
重置任务
-
+
- 本子名字:{{chosenGallery.name}}
- 本子页数:{{chosenGallery.pages}}
- 本子语言:{{chosenGallery.language}}
- 本子大小:{{chosenGallery.fileSize}}
- 本子状态:{{chosenGallery.status}}
+ 名字:{{chosenGallery.name}}
+ 页数:{{chosenGallery.pages}}
+ 语言:{{chosenGallery.language}}
+ 大小:{{chosenGallery.fileSize}}
+ 状态:{{chosenGallery.status}}
目标分辨率:
-
- 标签:
- {{store.state.tags.get(tid).tag}}
-
-
-
在线预览
@@ -132,7 +126,6 @@ let type = ref("link")
let param = ref("")
let targetResolution = ref("")
-let targetDownloadMode = ref("")
let realAuthCode = computed(() => {
return store.state.AuthCode
@@ -185,14 +178,9 @@ function postTask(){
ElMessage("请选择分辨率再提交")
return
}
- if(targetDownloadMode.value === ''){
- ElMessage("请选择下载模式再提交")
- return
- }
store.dispatch("postGalleryTask",
{link: chosenGallery.value.link,
- targetResolution: targetResolution.value,
- mode: targetDownloadMode.value})
+ targetResolution: targetResolution.value})
targetResolution.value = ""
}
@@ -206,27 +194,6 @@ function queryRemoteTask(){
param.value = param.value.replace("e-hentai", "exhentai")
store.dispatch("queryGalleryTask", param.value)
}
-function queryLocalTask(){
- switch (type.value){
- case "link":
- store.commit("_searchLocalByLink", param.value)
- break
- case "keyword":
- store.commit("_searchLocalByKeyword", param.value)
- break
- }
-}
-
-function removeQueryTag(tid){
- for (let i=0; i
-
+
diff --git a/src/components/OnlineReader.vue b/src/components/OnlineReader.vue
index d0b81a5..15b15f5 100644
--- a/src/components/OnlineReader.vue
+++ b/src/components/OnlineReader.vue
@@ -25,7 +25,7 @@ watch((store.state), (value) => {
}
})
-//切换本子
+//切换
function alterPage(){
if(readingGallery.value.images.length > lengthPerPage.value){
links.value = readingGallery.value.images.slice(0, lengthPerPage.value)
diff --git a/src/components/Side.vue b/src/components/Side.vue
index fa86272..ff33680 100644
--- a/src/components/Side.vue
+++ b/src/components/Side.vue
@@ -39,7 +39,7 @@
-
+
分类
@@ -130,6 +130,9 @@ let category = ref("myDownload") //myDownload myCollect total
let galleryNameType = ref("shortName") // shortName name
let sortType = ref("shortName") // shortName name createTime
let targetPage = ref(1) // 当前页数
+let username = computed(() => {
+ return store.state.username
+})
//查询相关
let type = ref("keyword")
@@ -161,7 +164,7 @@ let isLion = computed(() => {
let emptyText = computed(() => {
let action = category.value === 'myDownload' ? '下载': '收藏'
- return '您未' + action + '本子'
+ return '您未' + action + '过'
})
//查看详情
diff --git a/src/store/index.js b/src/store/index.js
index 64645b5..4c7700f 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -370,13 +370,13 @@ const mutations = {
const state = {
websocket: {}, //websocket
- totalGalleryTask: [], //存放本子数据的数组
- chosenGallery: false, //准备下载的本子
- collectGallery: [], //收藏的本子
- downloadGallery: [], //下载的本子
+ totalGalleryTask: [], //存放数据的数组
+ chosenGallery: false, //准备下载
+ collectGallery: [], //收藏
+ downloadGallery: [], //下载
isSearch: false, //用于决定是否显示搜索结果
- readingGallery: {'name': '', 'images': []}, //在线看本子
+ readingGallery: {'name': '', 'images': []}, //在线看
isReading: false, //是否正在看
currentGid: "", //当前GID
@@ -392,7 +392,7 @@ const state = {
isAuth: false, //是否授权
AuthCode: '', //授权码
loadComplete: false, //是否加载完成
- galleryRefreshTimer: 0, //本子更新计时器id
+ galleryRefreshTimer: 0, //更新计时器id
isInclude: false, //是否搜索到任务
searchTask: [], //搜索到的任务