Compare commits
No commits in common. "e19ae3d80278c00b9b705c246fabb426bd120027" and "bb13b28ba2eb572aceeeebcc0d51dcf3bbe9063b" have entirely different histories.
e19ae3d802
...
bb13b28ba2
@ -29,7 +29,6 @@
|
|||||||
<el-switch @click="toggleStyle" v-model="isDark">夜间模式</el-switch>
|
<el-switch @click="toggleStyle" v-model="isDark">夜间模式</el-switch>
|
||||||
<hr>
|
<hr>
|
||||||
<el-button @click="isQuerying = true">在线搜索</el-button>
|
<el-button @click="isQuerying = true">在线搜索</el-button>
|
||||||
<el-button @click="reconnect">重连节点</el-button>
|
|
||||||
<hr>
|
<hr>
|
||||||
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
|
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
|
||||||
<div v-show="thumbnailGallery.thumb_link !== undefined">
|
<div v-show="thumbnailGallery.thumb_link !== undefined">
|
||||||
@ -192,11 +191,6 @@ let isLion = computed(() => {
|
|||||||
return store.state.userId === 3
|
return store.state.userId === 3
|
||||||
})
|
})
|
||||||
|
|
||||||
//重连节点
|
|
||||||
function reconnect(){
|
|
||||||
store.dispatch("reconnect")
|
|
||||||
}
|
|
||||||
|
|
||||||
//修改授权码
|
//修改授权码
|
||||||
function alterAuthCode(){
|
function alterAuthCode(){
|
||||||
if(newAuthCode.value.trim() === "" || tempAuthCode.value.trim() === "" || newAuthCode.value !== tempAuthCode.value)
|
if(newAuthCode.value.trim() === "" || tempAuthCode.value.trim() === "" || newAuthCode.value !== tempAuthCode.value)
|
||||||
|
|||||||
@ -6,19 +6,6 @@ const BaseUrl = "https://downloader.lionwebsite.xyz/"
|
|||||||
const GalleryManageUrl = BaseUrl + "GalleryManage"
|
const GalleryManageUrl = BaseUrl + "GalleryManage"
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
reconnect(context) {
|
|
||||||
axios.post(GalleryManageUrl + "/reconnect", {
|
|
||||||
params: {
|
|
||||||
AuthCode: state.AuthCode
|
|
||||||
}
|
|
||||||
}).then(res => {
|
|
||||||
if (res.data.result === "success") {
|
|
||||||
ElMessage("重连成功")
|
|
||||||
} else {
|
|
||||||
ElMessage("重连失败")
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
updateGalleryTasks(context){
|
updateGalleryTasks(context){
|
||||||
axios.get(GalleryManageUrl, {
|
axios.get(GalleryManageUrl, {
|
||||||
params:{
|
params:{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user