mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
feat(frontend):使用内嵌应用图标
- 使用内嵌应用图标替换URL图标 - 添加 GetVersionInfo 函数调用,用于获取版本信息
This commit is contained in:
parent
626f99f0d1
commit
2658f207dc
@ -8,7 +8,7 @@ import {
|
||||
SendDingDingMessage, SendDingDingMessageByType,
|
||||
SetAlarmChangePercent,
|
||||
SetCostPriceAndVolume, SetStockSort,
|
||||
UnFollow, GetAIResponseResult
|
||||
UnFollow, GetAIResponseResult, GetVersionInfo
|
||||
} from '../../wailsjs/go/main/App'
|
||||
import {
|
||||
NAvatar,
|
||||
@ -64,6 +64,7 @@ const data = reactive({
|
||||
openAiEnable: false,
|
||||
loading: true,
|
||||
})
|
||||
const icon = ref('https://raw.githubusercontent.com/ArvinLovegood/go-stock/master/build/appicon.png');
|
||||
|
||||
const sortedResults = computed(() => {
|
||||
//console.log("computed",sortedResults.value)
|
||||
@ -112,6 +113,11 @@ onMounted(() => {
|
||||
data.fenshiURL='http://image.sinajs.cn/newchart/min/n/'+data.code+'.gif'+"?t="+Date.now()
|
||||
}
|
||||
}, 3500)
|
||||
|
||||
GetVersionInfo().then((res) => {
|
||||
icon.value = res.icon;
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
@ -183,7 +189,7 @@ EventsOn("updateVersion",async (msg) => {
|
||||
h(NAvatar, {
|
||||
size: 'small',
|
||||
round: false,
|
||||
src: 'https://github.com/ArvinLovegood/go-stock/raw/master/build/appicon.png'
|
||||
src: icon.value
|
||||
}),
|
||||
title: '发现新版本: ' + msg.tag_name,
|
||||
content: () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user