版本更新至0.1.7,启用h2db,添加统计功能,框架优化

This commit is contained in:
QAIU
2023-08-25 18:28:45 +08:00
parent b38291b6b2
commit c47c9bfc68

View File

@@ -11,9 +11,15 @@
<div class="typo">
<p><strong>项目GitHub </strong><a href="https://github.com/qaiu/netdisk-fast-download" target="_blank"
rel="nofollow"><u>netdisk-fast-download</u></a></p>
<p><strong>当前页面修改自开源项目</strong><a href="https://github.com/HurryBy/CloudDiskAnalysis" target="_blank"
<p><strong>当前页面修改自开源项目</strong><a href="https://github.com/HurryBy/CloudDiskAnalysis"
target="_blank"
rel="nofollow"><u>CloudDiskAnalysis</u></a></p>
<p><strong>目前支持 </strong>已支持蓝奏云/奶牛快传/移动云云空间/UC网盘(暂时失效)/小飞机盘/亿方云/123云盘</p>
<p>
<el-button><strong @click="getInfo">刷新API调用统计</strong></el-button>
</p>
<p>节点1: 成功:{{ node1Info.success }},失败:{{ node1Info.fail }},总数:{{ node1Info.total }}</p>
<p>节点2: 成功:{{ node2Info.success }},失败:{{ node2Info.fail }},总数:{{ node2Info.total }}</p>
</div>
<hr>
<div class="main" v-loading="isLoading">
@@ -26,7 +32,8 @@
<el-input v-show="respData.data" placeholder="解析地址" :value="getLink2" id="url" lass="input-with-select">
<el-button slot="append" v-clipboard:copy="getLink2"
v-clipboard:success="onCopy"
v-clipboard:error="onError">点我复制</el-button>
v-clipboard:error="onError">点我复制
</el-button>
</el-input>
</div>
<div v-show="respData.code" style="margin-top: 10px">
@@ -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: {
@@ -156,7 +167,25 @@ export default {
},
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()
}
}
</script>