diff --git a/web/src/views/HomeView.vue b/web/src/views/HomeView.vue index 6818dcf..fdc9674 100644 --- a/web/src/views/HomeView.vue +++ b/web/src/views/HomeView.vue @@ -4,9 +4,10 @@ import axios from "@/axios.ts" import {useRoute} from "vue-router" import {ElMessage} from "element-plus" import { - Key, Refresh, Delete, DataAnalysis, - Document, Warning, Search, InfoFilled + Key, DataAnalysis, + Document, Warning, Search, Upload } from '@element-plus/icons-vue' +import AddDataDialog from "@/components/AddDataDialog.vue"; const route = useRoute() const token = ref(route.query.token as string || '') @@ -14,6 +15,7 @@ const input = ref(route.query.token as string || '') const result = ref(null) const loading = ref(false) const lastUpdate = ref('') +const showAddDataDialog = ref(false) const updateTime = () => { const now = new Date() @@ -87,8 +89,16 @@ const statCards = [ 查询 + + + + + 增加数据 + + +
Token 信息 @@ -143,13 +153,13 @@ const statCards = [ .search-box { display: flex; + //justify-content: center; gap: 12px; margin-bottom: 32px; } .token-input { - flex: 1; - max-width: 600px; + max-width: 400px; } .result-section {