diff --git a/README.md b/README.md index f5ea30e..d92749b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,8 @@ ### 📦 立即体验 - 安装版:[go-stock-amd64-installer.exe](https://github.com/ArvinLovegood/go-stock/releases) - 绿色版:[go-stock-windows-amd64.exe](https://github.com/ArvinLovegood/go-stock/releases) -- MACOS版:[go-stock-darwin-universal](https://github.com/ArvinLovegood/go-stock/releases) +- MACOS绿色版:[go-stock-darwin-universal](https://github.com/ArvinLovegood/go-stock/releases) +- MACOS安装版:[go-stock-darwin-universal.pkg](https://github.com/ArvinLovegood/go-stock/releases) ### 💬 支持大模型/平台 diff --git a/app.go b/app.go index f5ebb09..751ed85 100644 --- a/app.go +++ b/app.go @@ -258,7 +258,7 @@ func (a *App) CheckUpdate() { "time": "发现新版本:" + releaseVersion.TagName, "isRed": false, "source": "go-stock", - "content": fmt.Sprintf("当前版本:%s, 最新版本:%s,后台开始下载...\n%s", Version, releaseVersion.TagName, commit.Message), + "content": fmt.Sprintf("%s", commit.Message), }) resp, err := resty.New().R().Get(downloadUrl) if err != nil { diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 3b75408..ee6ee86 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -10,7 +10,7 @@ import { } from '../wailsjs/runtime' import {h, onBeforeMount, onBeforeUnmount, onMounted, ref} from "vue"; import {RouterLink, useRouter} from 'vue-router' -import {createDiscreteApi,darkTheme,lightTheme , NIcon, NText,dateZhCN,zhCN} from 'naive-ui' +import {createDiscreteApi,darkTheme,lightTheme , NIcon, NText,NButton,dateZhCN,zhCN} from 'naive-ui' import { AlarmOutline, AnalyticsOutline, @@ -638,16 +638,24 @@ onMounted(() => { //type:"error", // avatar: () => h(NIcon,{component:Notifications,color:"red"}), title: data.time, - content: () => h(NText,{type:"error"}, { default: () => data.content }), + content: () => h('div',{type:"error",style:{ + "text-align":"left", + "font-size":"14px", + "color":"#f67979" + }}, { default: () => data.content }), meta: () => h(NText,{type:"warning"}, { default: () => data.source}), duration:1000*40, }) }else{ - notification.create({ + notification.create({ //type:"info", //avatar: () => h(NIcon,{component:Notifications}), title: data.time, - content: () => h(NText,{type:"info"}, { default: () => data.content }), + content: () => h('div',{type:"info",style:{ + "text-align":"left", + "font-size":"14px", + "color":"#F98C24" + }}, { default: () => data.content }), meta: () => h(NText,{type:"warning"}, { default: () => data.source}), duration:1000*30 , })