From e74d04d24b48ba67ff82f35c1b8c7e0fda17fccc Mon Sep 17 00:00:00 2001 From: yangsy Date: Thu, 11 Sep 2025 16:32:45 +0800 Subject: [PATCH] style: update modal style --- src/composables/query/system/use-version-check-query.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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: () => {