From dfd7e7a934bcb02f318156ecf5a909985e39f908 Mon Sep 17 00:00:00 2001 From: QAIU <736226400@qq.com> Date: Fri, 25 Aug 2023 18:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E8=87=B30.?= =?UTF-8?q?1.7,=E5=90=AF=E7=94=A8h2db,=E6=B7=BB=E5=8A=A0=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD,=E6=A1=86=E6=9E=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-front/src/App.vue | 47 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/web-front/src/App.vue b/web-front/src/App.vue index 76a0b38..ab267b0 100644 --- a/web-front/src/App.vue +++ b/web-front/src/App.vue @@ -10,10 +10,16 @@

NFD网盘直链解析(API演示)

项目GitHub netdisk-fast-download

-

当前页面修改自开源项目CloudDiskAnalysis

+ rel="nofollow">netdisk-fast-download

+

当前页面修改自开源项目CloudDiskAnalysis

目前支持 已支持蓝奏云/奶牛快传/移动云云空间/UC网盘(暂时失效)/小飞机盘/亿方云/123云盘

+

+ 刷新API调用统计 +

+

节点1: 成功:{{ node1Info.success }},失败:{{ node1Info.fail }},总数:{{ node1Info.total }}

+

节点2: 成功:{{ node2Info.success }},失败:{{ node2Info.fail }},总数:{{ node2Info.total }}


@@ -24,10 +30,11 @@ - 点我复制 - + v-clipboard:error="onError">点我复制 + +
解析结果: @@ -113,7 +120,11 @@ export default { }, ], getLink: '', - getLink2: '' + getLink2: '', + node1Ip: 'http://140.249.188.241:8400/', + node2Ip: 'http://47.93.26.218:6400/', + node1Info: {}, + node2Info: {}, } }, methods: { @@ -151,12 +162,30 @@ export default { } ) }, - onCopy(){ + onCopy() { this.$message.success('复制成功') }, - onError(){ + onError() { this.$message.error('复制失败') + }, + getInfo() { + // 初始化统计信息 + axios.get(this.node1Ip + 'v2/statisticsInfo').then( + response => { + if (response.data.success) { + this.node1Info = response.data.data + } + }) + axios.get(this.node2Ip + 'v2/statisticsInfo').then( + response => { + if (response.data.success) { + this.node1Info = response.data.data + } + }) } + }, + mounted() { + this.getInfo() } }