refactor: extract VersionInfo

This commit is contained in:
yangsy
2025-09-26 12:04:45 +08:00
parent f7a1de33ea
commit 596fb2feee
2 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,4 @@
export interface VersionInfo {
version: string;
buildTime: string;
}

View File

@@ -1,13 +1,9 @@
import type { VersionInfo } from '@/apis/domains/version-info';
import { useQuery } from '@tanstack/vue-query';
import axios from 'axios';
import { h, ref, watch } from 'vue';
export function useVersionCheckQuery() {
interface VersionInfo {
version: string;
buildTime: string;
}
const localVersionInfo = ref<VersionInfo>();
const dialogShow = ref<boolean>(false);