ZaiZai 1 year ago
parent
commit
6c2ccedc2c
4 changed files with 45 additions and 6 deletions
  1. 2 6
      src/layout/index.vue
  2. 21 0
      src/router/modules/base.js
  3. 11 0
      src/views/system/client.vue
  4. 11 0
      src/views/system/menu.vue

+ 2 - 6
src/layout/index.vue

@@ -38,8 +38,6 @@ import { onMounted, ref } from 'vue'
 import { useAppStore } from '~src/store'
 import { useRouter } from 'vue-router'
 import { initButtons } from '~sto/app'
-//import HcSocket from '~src/plugins/HcSocket'
-import { getObjValue } from 'js-fast-way'
 
 //初始组合式
 const router = useRouter()
@@ -82,7 +80,7 @@ const collapseChange = () => {
 //菜单被点击
 const menuBarChange = ({ code }) => {
     menuBarKey.value = code
-    //router.push({ name: code })
+    router.push({ name: code })
 }
 
 //消息数量
@@ -99,9 +97,7 @@ const msgCount = ref({
 
 //用户信息
 const userInfoLoad = ({ user_id }) => {
-    /*HcSocket.create(user_id, (data) => {
-        msgCount.value = getObjValue(data)
-    })*/
+    console.log('用户信息', user_id)
 }
 
 //首页

+ 21 - 0
src/router/modules/base.js

@@ -33,6 +33,27 @@ export default [
             },
         ],
     },
+    {
+        path: '/system',
+        name: 'system',
+        redirect: '/system/client',
+        meta: { title: '系统管理' },
+        component: Layout,
+        children: [
+            {
+                path: '/system/client',
+                name: 'client',
+                meta: { title: '应用管理' },
+                component: () => import('~src/views/system/client.vue'),
+            },
+            {
+                path: '/system/menu',
+                name: 'menu',
+                meta: { title: '菜单管理' },
+                component: () => import('~src/views/system/menu.vue'),
+            },
+        ],
+    },
     {
         path: '/403',
         name: '403',

+ 11 - 0
src/views/system/client.vue

@@ -0,0 +1,11 @@
+<template>
+    <div>11</div>
+</template>
+
+<script setup>
+
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 11 - 0
src/views/system/menu.vue

@@ -0,0 +1,11 @@
+<template>
+    <div>11</div>
+</template>
+
+<script setup>
+
+</script>
+
+<style scoped lang="scss">
+
+</style>