File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { useAppStore } from ' @/stores/app'
33import { ref } from ' vue'
4+ import { openUrl as tauriOpenUrl } from ' @tauri-apps/plugin-opener'
45
56const appStore = useAppStore ()
67const 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 >
You can’t perform that action at this time.
0 commit comments