From 3712db1b04f6eb88d78cc9fc9d49897175742d30 Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Wed, 28 Dec 2022 17:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 63ece02..41c79a6 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -4,8 +4,8 @@ import {ElMessage} from "element-plus" import qs from "qs" import moment from 'moment' const BaseUrl = "http://downloader.lionwebsite.xyz/" -const GalleryManageUrl = BaseUrl + "GalleryManage/" -const VideoManageUrl = BaseUrl + "VideoManage/" +const GalleryManageUrl = BaseUrl + "GalleryManage" +const VideoManageUrl = BaseUrl + "VideoManage" const actions = { updateGalleryTasks(context, type){ @@ -136,7 +136,7 @@ const actions = { }) }, loadWeekUsedAmount(context){ - axios.get(GalleryManageUrl + "weekUsedAmount", { + axios.get(GalleryManageUrl + "/weekUsedAmount", { params: { AuthCode: state.AuthCode } @@ -272,7 +272,7 @@ const mutations = { if (url.host === mask['raw']) tempLink = task.link.replace(mask['raw'], mask['mask']) }) - task.download = GalleryManageUrl + "file/" + encodeURI(task.name) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode + task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode break; } @@ -340,7 +340,7 @@ const mutations = { if (url.host === mask['raw']) tempLink = task.link.replace(mask['raw'], mask['mask']) }) - task.download = VideoManageUrl + "file/" + encodeURI(task.name) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode + task.download = VideoManageUrl + "/file/" + encodeURI(task.name) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode task.createTimeDisplay = moment(task.createTime * 1000).format("YYYY-MM-DD HH:mm:ss") } state.totalVideoTask.push(task) @@ -509,7 +509,7 @@ const mutations = { }, _changeThumbnailGallery(state, gallery){ state.thumbnailGallery = gallery - state.thumbnailGallery.url = GalleryManageUrl + "thumbnail/" + encodeURIComponent(gallery.name) + ".webp?AuthCode="+state.AuthCode + state.thumbnailGallery.url = GalleryManageUrl + "/thumbnail/" + encodeURIComponent(gallery.name) + ".webp?AuthCode="+state.AuthCode } }