diff --git a/src/assets/images/background-image.png b/src/assets/images/background-image.png
new file mode 100644
index 0000000..c0733a2
Binary files /dev/null and b/src/assets/images/background-image.png differ
diff --git a/src/assets/images/main-logo.png b/src/assets/images/main-logo.png
new file mode 100644
index 0000000..2b3ca95
Binary files /dev/null and b/src/assets/images/main-logo.png differ
diff --git a/src/component/common/InformationBox.vue b/src/component/common/InformationBox.vue
index c18c8d5..43b3682 100644
--- a/src/component/common/InformationBox.vue
+++ b/src/component/common/InformationBox.vue
@@ -44,7 +44,7 @@ onMounted(() => {
// 数据转换
Object.entries(props.data).forEach(([key, value]) => {
// 判读key是不是存在field中,存在就添加到表格数据,不存在则不添加
- if (Object.hasOwn(props.field, key)) {
+ if (Object.hasOwn(props.field, key) && value) {
tableDatas.value.push({
title: props.field[key],
content: value
diff --git a/src/router/index.ts b/src/router/index.ts
index eb7c1c6..23f33fd 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -5,17 +5,21 @@ const router = createRouter({
routes: [
{
path: '/',
- redirect: '/rainstorm',
- },
- {
- path: '/rainstorm',
- name: 'rainstorm',
- component: () => import('@/views/home/rainstorm/Rainstorm.vue'),
- },
- {
- path: '/earthquake',
- name: 'earthquake',
- component: () => import('@/views/home/earthquake/Earthquake.vue'),
+ name: 'index',
+ component: () => import('@/views/Index.vue'),
+ redirect: 'rainstorm',
+ children: [
+ {
+ path: 'rainstorm',
+ name: 'rainstorm',
+ component: () => import('@/views/home/rainstorm/Rainstorm.vue'),
+ },
+ {
+ path: 'earthquake',
+ name: 'earthquake',
+ component: () => import('@/views/home/earthquake/Earthquake.vue'),
+ }
+ ]
}
],
})
diff --git a/src/views/Index.vue b/src/views/Index.vue
new file mode 100644
index 0000000..500a8cd
--- /dev/null
+++ b/src/views/Index.vue
@@ -0,0 +1,109 @@
+
+
+
+
+
+
![西安应急智慧logo]()
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file