style: update modal style
This commit is contained in:
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user