Forráskód Böngészése

feat: 增加新的菜单

sunxiao 10 hónapja
szülő
commit
30d7968476

+ 1 - 1
src/components/Layout/TheMenu.vue

@@ -59,7 +59,7 @@ const menuOptions = [
       {
         label: '预测报警',
         icon: renderChildrenIcon({ name: 'menu-analyse-notice' }),
-        key: 'normal',
+        key: '/forecast-warn',
       },
       {
         label: '智能工单',

+ 8 - 0
src/router/index.js

@@ -46,6 +46,14 @@ const constantRouterMap = [
           title: '生化报警'
         }
       },
+      {
+        path: 'forecast-warn',
+        name: 'ForecastView',
+        component: () => import('@/views/analyse/ForecastView.vue'),
+        meta: {
+          title: '预测报警'
+        }
+      },
       {
         path: 'work-order',
         name: 'WorKOrder',

+ 9 - 0
src/views/analyse/ForecastView.vue

@@ -0,0 +1,9 @@
+<script setup>
+  
+</script>
+
+<template>
+  <div>
+    预测报警
+  </div>
+</template>