diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index 3aafb4c..e02beec 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -354,7 +354,7 @@ function removeAllQueryTag(){ function handleTagSelect(data){ if('tag' in data){ //需要新建,不知道怎么处理回调,直接把axios搬到vue里面 - axios.post("http://downloader.lionwebsite.xyz/GalleryManage/tag?" + qs.stringify({ + axios.post("https://downloader.lionwebsite.xyz/GalleryManage/tag?" + qs.stringify({ tag:data.tag, AuthCode: store.state.AuthCode }) diff --git a/src/components/HentaiSearch.vue b/src/components/HentaiSearch.vue index cce53b6..3ab82cf 100644 --- a/src/components/HentaiSearch.vue +++ b/src/components/HentaiSearch.vue @@ -29,7 +29,7 @@ function queryGalleries(link){ tempParam = tempParam.replace(" ", "+") document.getElementById("loading").style.display = "inline-block"; - axios.get("http://downloader.lionwebsite.xyz/query?keyword=" + tempParam) + axios.get("https://downloader.lionwebsite.xyz/query?keyword=" + tempParam) .then((res) => { document.getElementById("loading").style.display = "none"; if (res.data.result === "success") { @@ -83,8 +83,8 @@ function close(){
- { + axios.post("https://downloader.lionwebsite.xyz/GalleryManage/share?userId=3&expireHour=3&gid=" + gid).then((res) => { if(res.data.result === "success"){ let data = JSON.parse(res.data.data) - link = 'http://lionwebsite.xyz/GetFile/{0}?ShareCode={1}'.replace('{0}', encodeURIComponent(shortName)).replace('{1}', data.shareCode) + link = 'https://lionwebsite.xyz/GetFile/{0}?ShareCode={1}'.replace('{0}', encodeURIComponent(shortName)).replace('{1}', data.shareCode) ElMessage({dangerouslyUseHTMLString: true, message: "分享成功, 过期时间:" + data.expireTime + "
链接", duration: 0, diff --git a/src/store/index.js b/src/store/index.js index 60828ba..e785cfa 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2,7 +2,7 @@ import vuex from "vuex" import axios from "axios" import {ElMessage} from "element-plus" import qs from "qs" -const BaseUrl = "http://downloader.lionwebsite.xyz/" +const BaseUrl = "https://downloader.lionwebsite.xyz/" const GalleryManageUrl = BaseUrl + "GalleryManage" const actions = { @@ -578,8 +578,8 @@ const mutations = { state.currentGid = data.gid links.forEach((link) => { - state.onlineLinks[data.gid].push('http://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode) - state.currentLinks.push('http://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode) + state.onlineLinks[data.gid].push('https://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode) + state.currentLinks.push('https://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode) }) state.isOnlineReading = true