Ver código fonte

fix: 菜单bug

lvkun996 2 anos atrás
pai
commit
a9a7057478
2 arquivos alterados com 6 adições e 4 exclusões
  1. 3 3
      public/index.html
  2. 3 1
      src/pages/Iot/device/index.vue

+ 3 - 3
public/index.html

@@ -15,14 +15,14 @@
          /* background-color: azure; */
       }
       #app {
-        width: 100vw;
+        /* width: 100vw;
         height: 100vh;
         display: flex;
         justify-content: center;
         align-items: center;
         font: 120px 'Italiana', sans-serif;
         text-transform: lowercase;
-        text-align: center;
+        text-align: center; */
       }
   </style>
   </head>
@@ -33,7 +33,7 @@
     </noscript>
 
     <div id="app">
-      loading...
+      <!-- loading... -->
     </div>
     <!-- built files will be auto injected -->
   </body>

+ 3 - 1
src/pages/Iot/device/index.vue

@@ -1,4 +1,5 @@
 <template>
+
   <a-card title="设备统计" >
     <a-row justify="center">
       <a-col
@@ -159,9 +160,11 @@
     </a-spin>
     </a-row>
   </modal-pro>
+
 </template>
 
 <script lang="ts" setup >
+
 import { DeviceContriller, ModelController } from '@/controller/index'
 import { onMounted, reactive, ref, toRefs, nextTick, computed, watch } from 'vue'
 import { Form, message } from 'ant-design-vue'
@@ -170,7 +173,6 @@ import { useRouter } from 'vue-router'
 import { DownOutlined } from '@ant-design/icons-vue'
 import * as echarts from 'echarts'
 import { sessionEchartsJson, attrEchartsJson, scatterOption, barOption } from './json/echartsJson'
-import dayjs from 'dayjs'
 
 const useForm = Form.useForm
 const router = useRouter()