Skip to content

Commit 3c57593

Browse files
author
Taois
committed
feat:增加下载链接
1 parent 002a012 commit 3c57593

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

dashboard/src/views/Settings.vue

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,17 @@
240240
</template>
241241
</a-input>
242242
<div class="address-config-actions">
243+
<a-button
244+
type="text"
245+
@click="downloadProxyPlayer"
246+
size="medium"
247+
class="download-btn"
248+
title="下载代理播放器"
249+
>
250+
<template #icon>
251+
<icon-download />
252+
</template>
253+
</a-button>
243254
<AddressHistory
244255
ref="proxyPlayHistory"
245256
config-key="proxy-play"
@@ -313,6 +324,17 @@
313324
</template>
314325
</a-input>
315326
<div class="address-config-actions">
327+
<a-button
328+
type="text"
329+
@click="downloadProxySniffer"
330+
size="medium"
331+
class="download-btn"
332+
title="下载代理嗅探器"
333+
>
334+
<template #icon>
335+
<icon-download />
336+
</template>
337+
</a-button>
316338
<AddressHistory
317339
ref="proxySniffHistory"
318340
config-key="proxy-sniff"
@@ -826,6 +848,7 @@ import {
826848
IconImage,
827849
IconClockCircle,
828850
IconComputer,
851+
IconDownload,
829852
IconCode
830853
} from '@arco-design/web-vue/es/icon'
831854
import AddressHistory from '@/components/AddressHistory.vue'
@@ -1262,6 +1285,20 @@ const handleProxyPlayEnabledChange = (enabled) => {
12621285
console.log('代理播放开关状态已更改:', enabled)
12631286
}
12641287
1288+
// 下载代理播放器
1289+
const downloadProxyPlayer = () => {
1290+
const url = 'https://wwvy.lanzouo.com/i527V37opr4b'
1291+
window.open(url, '_blank')
1292+
Message.success('正在打开代理播放器下载页面')
1293+
}
1294+
1295+
// 下载代理嗅探器
1296+
const downloadProxySniffer = () => {
1297+
const url = 'https://wwvy.lanzouo.com/ijPuF37oo10f'
1298+
window.open(url, '_blank')
1299+
Message.success('正在打开代理嗅探器下载页面')
1300+
}
1301+
12651302
// 注释:已删除 getConfigKey 函数,改为直接使用 ref 引用
12661303
12671304
// 获取当前播放器名称

0 commit comments

Comments
 (0)