Skip to content

Commit 6479dbb

Browse files
committed
chore: update project info
1 parent b45fa43 commit 6479dbb

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

tauri-app/src-tauri/capabilities/default.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"permissions": [
77
"core:default",
88
"opener:default",
9+
"opener:allow-open-url",
910
"dialog:default",
1011
"clipboard-manager:allow-write-text",
1112
"clipboard-manager:allow-read-text"

tauri-app/src/views/SettingsView.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { useAppStore } from '@/stores/app'
33
import { ref } from 'vue'
4+
import { openUrl as tauriOpenUrl } from '@tauri-apps/plugin-opener'
45
56
const appStore = useAppStore()
67
const showSaveSuccess = ref(false)
@@ -36,6 +37,8 @@ const checkForUpdates = async () => {
3637
// TODO: 实现检查更新功能
3738
console.log('Checking for updates...')
3839
}
40+
41+
const openUrl = (url: string) => tauriOpenUrl(url).catch(console.error)
3942
</script>
4043

4144
<template>
@@ -102,9 +105,17 @@ const checkForUpdates = async () => {
102105
<v-list-item-title>版本</v-list-item-title>
103106
<v-list-item-subtitle>0.1.0</v-list-item-subtitle>
104107
</v-list-item>
105-
<v-list-item>
108+
<v-list-item @click="openUrl('https://github.com/EkkoG/OpenWrt')">
109+
<v-list-item-title>项目主页</v-list-item-title>
110+
<v-list-item-subtitle class="text-primary cursor-pointer">
111+
https://github.com/EkkoG/OpenWrt
112+
</v-list-item-subtitle>
113+
</v-list-item>
114+
<v-list-item @click="openUrl('https://github.com/EkkoG')">
106115
<v-list-item-title>开发者</v-list-item-title>
107-
<v-list-item-subtitle>OpenWrt Builder Team</v-list-item-subtitle>
116+
<v-list-item-subtitle class="text-primary cursor-pointer">
117+
https://github.com/EkkoG
118+
</v-list-item-subtitle>
108119
</v-list-item>
109120
<v-list-item>
110121
<v-list-item-title>技术栈</v-list-item-title>

0 commit comments

Comments
 (0)