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()
}
}