优化部分细节(同步更新)

This commit is contained in:
chuzhongzai 2023-08-05 21:53:46 +08:00
parent 8e606598dd
commit cd7a8e8df2
3 changed files with 4 additions and 6 deletions

View File

@ -104,7 +104,7 @@
</el-footer>
</el-dialog>
<HentaiSearch v-model:is-querying="isQuerying" @close="closeQueryPanel"></HentaiSearch>
<HentaiSearch v-model:is-querying="isQuerying" @close="isQuerying = false"></HentaiSearch>
<el-dialog title="配置" v-model="isConfig">
<div>
@ -383,10 +383,6 @@ function resetLocalQuery(){
param.value = ""
}
function closeQueryPanel(){
isQuerying.value = false
}
function deleteGallery(){
store.dispatch("deleteGallery", chosenGallery.value.gid)
}

View File

@ -2,6 +2,7 @@
import {computed, ref, watch} from "vue";
import store from "../store/index.js";
let props = defineProps(['currentGallery', 'isOnlineReading'])
let emit = defineEmits(['close'])
let isShowUp = ref()
let onlineReadingScrollbar = ref()
let links = ref()
@ -40,6 +41,7 @@ function jump(targetIndex){
function closeDialog(){
onlineReadingScrollbar.value.setScrollTop(0)
emit("close")
}
</script>

View File

@ -110,7 +110,7 @@
</el-form>
</el-dialog>
<OnlineReader :current-gallery="currentGallery" :isOnlineReading="isOnlineReading"/>
<OnlineReader :current-gallery="currentGallery" :isOnlineReading="isOnlineReading" @close="isOnlineReading = false"/>
<span v-show="!loadComplete" class="side">请输入授权码后再查看</span>
</div>