qymljy 2 年之前
父节点
当前提交
6116cc5667
共有 3 个文件被更改,包括 28 次插入1 次删除
  1. 13 0
      src/router/IOT.js
  2. 2 1
      src/router/index.js
  3. 13 0
      src/system/IOT/iotcard/index.vue

+ 13 - 0
src/router/IOT.js

@@ -0,0 +1,13 @@
+const IOT = [
+    {
+        path: '/iotcard',
+        name: 'iotcard',
+        meta: {
+            title: '物联卡管理',
+            name: 'iotcard',
+            keepAlive:false
+        },
+        component: ()=>import(/* webpackChunkName: "about" */ '@/system/IOT/iotcard/index.vue'),
+    },
+]
+export default IOT;

+ 2 - 1
src/router/index.js

@@ -1,5 +1,6 @@
 import { createRouter, createWebHashHistory } from 'vue-router'
 import modelNormal from './modelNormal.js'
+import IOT from "./IOT";
 const routes = [
   {
     path: '/',
@@ -22,7 +23,7 @@ const routes = [
     redirect: "/404"
   },
 ]
-routes[1].children = [...routes[1].children,...modelNormal]
+routes[1].children = [...routes[1].children,...modelNormal,...IOT]
 const router = createRouter({
   history: createWebHashHistory(),
   routes

+ 13 - 0
src/system/IOT/iotcard/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>
+
+  </div>
+</template>
+
+<script setup>
+
+</script>
+
+<style >
+
+</style>