diff --git a/src/composables/query/system/use-version-check-query.ts b/src/composables/query/system/use-version-check-query.ts index c31f2ab..18bcf47 100644 --- a/src/composables/query/system/use-version-check-query.ts +++ b/src/composables/query/system/use-version-check-query.ts @@ -1,6 +1,6 @@ import { useQuery } from '@tanstack/vue-query'; import axios from 'axios'; -import { ref, watch } from 'vue'; +import { h, ref, watch } from 'vue'; export function useVersionCheckQuery() { interface VersionInfo { @@ -33,7 +33,12 @@ export function useVersionCheckQuery() { dialogShow.value = true; window.$dialog.info({ title: '发现新版本', - content: '请刷新网页更新', + content: () => + h('div', {}, [ + h('div', {}, { default: () => `当前版本:${localVersionInfo.value?.version}` }), + h('div', {}, { default: () => `最新版本:${newVersionInfo.version}` }), + h('div', {}, { default: () => '请点击刷新页面以更新' }), + ]), positiveText: '刷新页面', maskClosable: false, onPositiveClick: () => {