mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 13:49:20 +08:00
feat: 优化搜索表单
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<script setup lang="ts">
|
||||
import type { LicenseVO } from '#/api/sys/license';
|
||||
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
import { Card, Spin } from 'ant-design-vue';
|
||||
|
||||
import { getSystemFingerprintApi } from '#/api/sys/license';
|
||||
|
||||
import FingerprintDisplay from './FingerprintDisplay.vue';
|
||||
|
||||
defineOptions({ name: 'FingerprintInfo' });
|
||||
|
||||
const loading = ref(false);
|
||||
const fingerprint = ref<LicenseVO.Fingerprint | null>(null);
|
||||
|
||||
async function load() {
|
||||
loading.value = true;
|
||||
try {
|
||||
fingerprint.value = await getSystemFingerprintApi();
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
load();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Card title="机器指纹" :bordered="false">
|
||||
<Spin :spinning="loading">
|
||||
<FingerprintDisplay
|
||||
v-if="fingerprint"
|
||||
:fingerprint="fingerprint.fingerprint"
|
||||
:hostname="fingerprint.hostname"
|
||||
:machine-id="fingerprint.machineId"
|
||||
/>
|
||||
<div v-else-if="!loading" class="text-gray-400">暂无指纹信息</div>
|
||||
</Spin>
|
||||
<p class="mt-4 text-sm text-gray-500">
|
||||
迁机或重新签发 License 时,请将新环境的机器指纹提供给运营方。
|
||||
</p>
|
||||
</Card>
|
||||
</template>
|
||||
Reference in New Issue
Block a user