PyWxDump/pywxdump/ui/src/views/IndexView.vue

30 lines
781 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup lang="ts">
import http from '@/utils/axios.js';
import {onMounted, ref} from "vue";
import {apiVersion} from "@/api/base";
const version = ref(''); // 用于显示返回值
const getVersion = () => {
apiVersion().then((data: string) => {
version.value = data;
}).catch((error: string) => {
console.error('Error fetching API version:', error);
});
}
onMounted(getVersion);
</script>
<template>
<div style="background-color: #d2d2fa; height: 100vh; display: grid; place-items: center; ">
<h2 style="text-align: center">欢迎使用<a href="https://github.com/xaoyaoo/PyWxDump.git">PyWxDump</a>聊天记录查看工具!
<p style="text-align: center">当前版本{{ version }}</p>
</h2>
</div>
</template>
<style scoped>
</style>