mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-28 13:12:52 +08:00
feat: 添加设置页Header跳转链接
This commit is contained in:
parent
b5cdf83831
commit
7a6b9f5dc6
@ -1,6 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="setting">
|
<div class="setting">
|
||||||
<el-card class="setting-card">
|
<el-card class="setting-card">
|
||||||
|
<template #header>
|
||||||
|
<el-button type="primary" @click="handleLinkClick(0)">🚀 主页</el-button>
|
||||||
|
<el-button @click="handleLinkClick(1)">⚡ 云同步教程</el-button>
|
||||||
|
<el-button @click="handleLinkClick(2)">⭐ 开源代码</el-button>
|
||||||
|
<el-button @click="handleLinkClick(3)">🎈 论坛发布页</el-button>
|
||||||
|
</template>
|
||||||
<div class="setting-card-content">
|
<div class="setting-card-content">
|
||||||
<div class="setting-card-content-item">
|
<div class="setting-card-content-item">
|
||||||
<span>数据库路径</span>
|
<span>数据库路径</span>
|
||||||
@ -44,6 +50,16 @@ const path = ref(database.path)
|
|||||||
const maxsize = ref(database.maxsize)
|
const maxsize = ref(database.maxsize)
|
||||||
const maxage = ref(database.maxage)
|
const maxage = ref(database.maxage)
|
||||||
|
|
||||||
|
const handleLinkClick = (index) => {
|
||||||
|
const links = [
|
||||||
|
'https://ziuchen.gitee.io/project/ClipboardManager/',
|
||||||
|
'https://ziuchen.gitee.io/project/ClipboardManager/guide/',
|
||||||
|
'https://github.com/ZiuChen/ClipboardManager',
|
||||||
|
'https://yuanliao.info/d/5722'
|
||||||
|
]
|
||||||
|
utools.shellOpenExternal(links[index])
|
||||||
|
}
|
||||||
|
|
||||||
const handlePathBtnClick = (param) => {
|
const handlePathBtnClick = (param) => {
|
||||||
if (param === 'modify') {
|
if (param === 'modify') {
|
||||||
const file = document.getElementById('database-path')
|
const file = document.getElementById('database-path')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user