vite+vue3+pinia+vuex4动态路由解决刷新页面丢失

news2024/9/20 1:08:20

目录

了解如何添加动态路由

 使用pinia持久化数据

解决方案

 404找不页面问题

目前解决思路

完整路由配置 

动态路由使用的数据 


  • 了解如何添加动态路由

vue官网-动态添加路由

  •  使用pinia持久化数据

pinia的使用

  • 解决方案

  1. asyncRoutes()方法从pinia获取到动态菜单数据
  2. 登陆成功后先加载一次动态路由
    1. import { firstAsyncRoutes } from '@/router';
      
      getMenu()
      function getMenu() {
          menusAPI().then(({ data }) => {
              if (data.code == 500) {
                  router.push("/login")
              }
              if (data.menus && data.menus.length > 0) {
                  homeSt.setMenus(data.menus)
                  firstAsyncRoutes()
              }
          })
      }
      
  3. 后续路由跳转丢失操作
router.beforeEach((to, from, next) => {
    if (!loginStore().getToken) {//1.没有登陆,则进入登陆界面
        if (to.path !== '/login') next('/login')
    } else if (loginStore().getToken) {//2.登陆后
        console.info("上一个路由:", from.path, "-->跳转至路由:", to.path)
        if (to.path === '/login') {//3.如果登陆后不允许进入登陆界面->跳转至左则菜单页面(点击菜单跳转路由)
            next('/home')
        } else {
            // console.info("路由注册标记:", registerFlag.value)
            if (!registerFlag.value) {//4.刷新页面重新加载路由
                asyncRoutes()//5.第一次添加路由
                registerFlag.value = true//6.不让重复添加
                router.replace({ ...to })//再次找一次路由
            } else {
                next()
            }
        }
    }
    next()
})
  •  404找不页面问题

    1. 目前解决思路

      1.     //由于动态路由有可能找不到组件,目前没有好的处理方式。统一跳转到首页
            {
                path: '/:pathMatch(.*)',
                redirect: '/home',
            },

  • 完整路由配置 

import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'

import { homeStore } from '@/pinia/home'
import { loginStore } from '@/pinia/login'
import { ref } from 'vue'


const modules = import.meta.glob(['../components/system/*/*.vue'])

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        component: () => import("@/components/login/index.vue")
    },
    {
        path: '/:pathMatch(.*)',
        redirect: '/home',
    },
    {
        path: '/home',
        name: "首页",
        component: () => import("@/components/home/index.vue"),
        redirect: '/welcome',
        children: [
            {
                path: '/welcome',
                name: "欢迎界面",
                component: () => import("@/components/home/Welcome.vue")
            }
        ]
    }
]

//路由对象
const router = createRouter({
    history: createWebHistory(),
    routes
})


const asyncRoutes = () => {
    homeStore().menus.forEach((element: any) => {
        router.addRoute({ path: '/home', name: element.menuName, component: () => import("@/components/home/index.vue") })
        if (element && element.children.length > 0) {
            element.children.forEach((item: any) => {
                if (item.isFrame === 0) {
                    //router.addRoute(element.menuName, { name: item.menuName, path: `/${item.path}`, redirect: item.path })
                } else {
                    if (item.isFrame === 1) {
                        // router.addRoute(element.menuName, { name: item.menuName, path: `/${item.path}`, component: () => import(`@/components/${item.component}.vue`) })
                        router.addRoute(element.menuName, { name: item.menuName, path: `/${item.path}`, component: modules[`../components/${item.component}.vue`] })
                    }
                }
            });
        }
    })
    // console.log(router.getRoutes(), '查看现有路由')
}

export function firstAsyncRoutes() {
    asyncRoutes();
}


const registerFlag = ref(false)  //默认路由没有注册


router.beforeEach((to, from, next) => {
    if (!loginStore().getToken) {//1.没有登陆,则进入登陆界面
        if (to.path !== '/login') next('/login')
    } else if (loginStore().getToken) {//2.登陆后
        console.info("上一个路由:", from.path, "-->跳转至路由:", to.path)
        if (to.path === '/login') {//3.如果登陆后不允许进入登陆界面->跳转至左则菜单页面(点击菜单跳转路由)
            next('/home')
        } else {
            // console.info("路由注册标记:", registerFlag.value)
            if (!registerFlag.value) {//4.刷新页面重新加载路由
                asyncRoutes()//5.第一次添加路由
                registerFlag.value = true//6.不让重复添加
                router.replace({ ...to })//再次找一次路由
            } else {
                next()
            }
        }
    }
    next()
})
//导出路由对象,在main.js中引用
export default router
  • 动态路由使用的数据 

[
  {
    "menuId": 1,
    "menuName": "系统管理",
    "parentId": 0,
    "orderNum": 1,
    "path": "system",
    "component": null,
    "query": "",
    "isFrame": 1,
    "isCache": 0,
    "menuType": "M",
    "visible": "0",
    "status": "0",
    "perms": "",
    "icon": "Tools",
    "createBy": "admin",
    "createTime": "2023-04-01T12:17:22.000+00:00",
    "updateBy": "",
    "updateTime": null,
    "remark": "系统管理目录",
    "children": [
      {
        "menuId": 100,
        "menuName": "用户管理",
        "parentId": 1,
        "orderNum": 1,
        "path": "user",
        "component": "system/user/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:user:list",
        "icon": "user",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "用户管理菜单",
        "children": [
          {
            "menuId": 1000,
            "menuName": "用户查询",
            "parentId": 100,
            "orderNum": 1,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:user:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1001,
            "menuName": "用户新增",
            "parentId": 100,
            "orderNum": 2,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:user:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1002,
            "menuName": "用户修改",
            "parentId": 100,
            "orderNum": 3,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:user:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1003,
            "menuName": "用户删除",
            "parentId": 100,
            "orderNum": 4,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:user:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1004,
            "menuName": "用户导出",
            "parentId": 100,
            "orderNum": 5,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:user:export",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1005,
            "menuName": "用户导入",
            "parentId": 100,
            "orderNum": 6,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:user:import",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1006,
            "menuName": "重置密码",
            "parentId": 100,
            "orderNum": 7,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:user:resetPwd",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 101,
        "menuName": "角色管理",
        "parentId": 1,
        "orderNum": 2,
        "path": "role",
        "component": "system/role/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:role:list",
        "icon": "Rank",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "角色管理菜单",
        "children": [
          {
            "menuId": 1007,
            "menuName": "角色查询",
            "parentId": 101,
            "orderNum": 1,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:role:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1008,
            "menuName": "角色新增",
            "parentId": 101,
            "orderNum": 2,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:role:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1009,
            "menuName": "角色修改",
            "parentId": 101,
            "orderNum": 3,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:role:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1010,
            "menuName": "角色删除",
            "parentId": 101,
            "orderNum": 4,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:role:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1011,
            "menuName": "角色导出",
            "parentId": 101,
            "orderNum": 5,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:role:export",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 102,
        "menuName": "菜单管理",
        "parentId": 1,
        "orderNum": 3,
        "path": "menu",
        "component": "system/menu/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:menu:list",
        "icon": "Menu",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "菜单管理菜单",
        "children": [
          {
            "menuId": 1012,
            "menuName": "菜单查询",
            "parentId": 102,
            "orderNum": 1,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:menu:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1013,
            "menuName": "菜单新增",
            "parentId": 102,
            "orderNum": 2,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:menu:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1014,
            "menuName": "菜单修改",
            "parentId": 102,
            "orderNum": 3,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:menu:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1015,
            "menuName": "菜单删除",
            "parentId": 102,
            "orderNum": 4,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:menu:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 103,
        "menuName": "部门管理",
        "parentId": 1,
        "orderNum": 4,
        "path": "dept",
        "component": "system/dept/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:dept:list",
        "icon": "List",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "部门管理菜单",
        "children": [
          {
            "menuId": 1016,
            "menuName": "部门查询",
            "parentId": 103,
            "orderNum": 1,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dept:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1017,
            "menuName": "部门新增",
            "parentId": 103,
            "orderNum": 2,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dept:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1018,
            "menuName": "部门修改",
            "parentId": 103,
            "orderNum": 3,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dept:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1019,
            "menuName": "部门删除",
            "parentId": 103,
            "orderNum": 4,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dept:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 104,
        "menuName": "岗位管理",
        "parentId": 1,
        "orderNum": 5,
        "path": "post",
        "component": "system/post/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:post:list",
        "icon": "post",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "岗位管理菜单",
        "children": [
          {
            "menuId": 1020,
            "menuName": "岗位查询",
            "parentId": 104,
            "orderNum": 1,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:post:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1021,
            "menuName": "岗位新增",
            "parentId": 104,
            "orderNum": 2,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:post:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1022,
            "menuName": "岗位修改",
            "parentId": 104,
            "orderNum": 3,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:post:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1023,
            "menuName": "岗位删除",
            "parentId": 104,
            "orderNum": 4,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:post:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1024,
            "menuName": "岗位导出",
            "parentId": 104,
            "orderNum": 5,
            "path": "",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:post:export",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 105,
        "menuName": "字典管理",
        "parentId": 1,
        "orderNum": 6,
        "path": "dict",
        "component": "system/dict/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:dict:list",
        "icon": "dict",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "字典管理菜单",
        "children": [
          {
            "menuId": 1025,
            "menuName": "字典查询",
            "parentId": 105,
            "orderNum": 1,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dict:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1026,
            "menuName": "字典新增",
            "parentId": 105,
            "orderNum": 2,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dict:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1027,
            "menuName": "字典修改",
            "parentId": 105,
            "orderNum": 3,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dict:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1028,
            "menuName": "字典删除",
            "parentId": 105,
            "orderNum": 4,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dict:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1029,
            "menuName": "字典导出",
            "parentId": 105,
            "orderNum": 5,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:dict:export",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 106,
        "menuName": "参数设置",
        "parentId": 1,
        "orderNum": 7,
        "path": "config",
        "component": "system/config/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:config:list",
        "icon": "edit",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "参数设置菜单",
        "children": [
          {
            "menuId": 1030,
            "menuName": "参数查询",
            "parentId": 106,
            "orderNum": 1,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:config:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1031,
            "menuName": "参数新增",
            "parentId": 106,
            "orderNum": 2,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:config:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1032,
            "menuName": "参数修改",
            "parentId": 106,
            "orderNum": 3,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:config:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1033,
            "menuName": "参数删除",
            "parentId": 106,
            "orderNum": 4,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:config:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1034,
            "menuName": "参数导出",
            "parentId": 106,
            "orderNum": 5,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:config:export",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 107,
        "menuName": "通知公告",
        "parentId": 1,
        "orderNum": 8,
        "path": "notice",
        "component": "system/notice/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "system:notice:list",
        "icon": "message",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "通知公告菜单",
        "children": [
          {
            "menuId": 1035,
            "menuName": "公告查询",
            "parentId": 107,
            "orderNum": 1,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:notice:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1036,
            "menuName": "公告新增",
            "parentId": 107,
            "orderNum": 2,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:notice:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1037,
            "menuName": "公告修改",
            "parentId": 107,
            "orderNum": 3,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:notice:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1038,
            "menuName": "公告删除",
            "parentId": 107,
            "orderNum": 4,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "system:notice:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 108,
        "menuName": "日志管理",
        "parentId": 1,
        "orderNum": 9,
        "path": "log",
        "component": "",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "M",
        "visible": "0",
        "status": "0",
        "perms": "",
        "icon": "log",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "日志管理菜单",
        "children": [
          {
            "menuId": 500,
            "menuName": "操作日志",
            "parentId": 108,
            "orderNum": 1,
            "path": "operlog",
            "component": "system/operlog/index",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "C",
            "visible": "0",
            "status": "0",
            "perms": "system:operlog:list",
            "icon": "form",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "操作日志菜单",
            "children": []
          },
          {
            "menuId": 501,
            "menuName": "登录日志",
            "parentId": 108,
            "orderNum": 2,
            "path": "logininfor",
            "component": "system/logininfor/index",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "C",
            "visible": "0",
            "status": "0",
            "perms": "system:logininfor:list",
            "icon": "logininfor",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "登录日志菜单",
            "children": []
          }
        ]
      }
    ]
  },
  {
    "menuId": 2,
    "menuName": "系统监控",
    "parentId": 0,
    "orderNum": 2,
    "path": "monitor",
    "component": null,
    "query": "",
    "isFrame": 1,
    "isCache": 0,
    "menuType": "M",
    "visible": "0",
    "status": "0",
    "perms": "",
    "icon": "HelpFilled",
    "createBy": "admin",
    "createTime": "2023-04-01T12:17:22.000+00:00",
    "updateBy": "",
    "updateTime": null,
    "remark": "系统监控目录",
    "children": [
      {
        "menuId": 109,
        "menuName": "在线用户",
        "parentId": 2,
        "orderNum": 1,
        "path": "online",
        "component": "monitor/online/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "monitor:online:list",
        "icon": "online",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "在线用户菜单",
        "children": [
          {
            "menuId": 1046,
            "menuName": "在线查询",
            "parentId": 109,
            "orderNum": 1,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:online:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1047,
            "menuName": "批量强退",
            "parentId": 109,
            "orderNum": 2,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:online:batchLogout",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1048,
            "menuName": "单条强退",
            "parentId": 109,
            "orderNum": 3,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:online:forceLogout",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 110,
        "menuName": "定时任务",
        "parentId": 2,
        "orderNum": 2,
        "path": "job",
        "component": "monitor/job/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "monitor:job:list",
        "icon": "job",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "定时任务菜单",
        "children": [
          {
            "menuId": 1049,
            "menuName": "任务查询",
            "parentId": 110,
            "orderNum": 1,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:job:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1050,
            "menuName": "任务新增",
            "parentId": 110,
            "orderNum": 2,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:job:add",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1051,
            "menuName": "任务修改",
            "parentId": 110,
            "orderNum": 3,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:job:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1052,
            "menuName": "任务删除",
            "parentId": 110,
            "orderNum": 4,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:job:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1053,
            "menuName": "状态修改",
            "parentId": 110,
            "orderNum": 5,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:job:changeStatus",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1054,
            "menuName": "任务导出",
            "parentId": 110,
            "orderNum": 6,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "monitor:job:export",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 111,
        "menuName": "Sentinel控制台",
        "parentId": 2,
        "orderNum": 3,
        "path": "http://localhost:8718",
        "component": "",
        "query": "",
        "isFrame": 0,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "monitor:sentinel:list",
        "icon": "sentinel",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "流量控制菜单",
        "children": []
      },
      {
        "menuId": 112,
        "menuName": "Nacos控制台",
        "parentId": 2,
        "orderNum": 4,
        "path": "http://localhost:8848/nacos",
        "component": "",
        "query": "",
        "isFrame": 0,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "monitor:nacos:list",
        "icon": "nacos",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "服务治理菜单",
        "children": []
      },
      {
        "menuId": 113,
        "menuName": "Admin控制台",
        "parentId": 2,
        "orderNum": 5,
        "path": "http://localhost:9100/login",
        "component": "",
        "query": "",
        "isFrame": 0,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "monitor:server:list",
        "icon": "server",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "服务监控菜单",
        "children": []
      }
    ]
  },
  {
    "menuId": 3,
    "menuName": "系统工具",
    "parentId": 0,
    "orderNum": 3,
    "path": "tool",
    "component": null,
    "query": "",
    "isFrame": 1,
    "isCache": 0,
    "menuType": "M",
    "visible": "0",
    "status": "0",
    "perms": "",
    "icon": "Briefcase",
    "createBy": "admin",
    "createTime": "2023-04-01T12:17:22.000+00:00",
    "updateBy": "",
    "updateTime": null,
    "remark": "系统工具目录",
    "children": [
      {
        "menuId": 114,
        "menuName": "表单构建",
        "parentId": 3,
        "orderNum": 1,
        "path": "build",
        "component": "tool/build/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "tool:build:list",
        "icon": "build",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "表单构建菜单",
        "children": []
      },
      {
        "menuId": 115,
        "menuName": "代码生成",
        "parentId": 3,
        "orderNum": 2,
        "path": "gen",
        "component": "tool/gen/index",
        "query": "",
        "isFrame": 1,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "tool:gen:list",
        "icon": "code",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "代码生成菜单",
        "children": [
          {
            "menuId": 1055,
            "menuName": "生成查询",
            "parentId": 115,
            "orderNum": 1,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "tool:gen:query",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1056,
            "menuName": "生成修改",
            "parentId": 115,
            "orderNum": 2,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "tool:gen:edit",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1058,
            "menuName": "导入代码",
            "parentId": 115,
            "orderNum": 2,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "tool:gen:import",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1057,
            "menuName": "生成删除",
            "parentId": 115,
            "orderNum": 3,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "tool:gen:remove",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1059,
            "menuName": "预览代码",
            "parentId": 115,
            "orderNum": 4,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "tool:gen:preview",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          },
          {
            "menuId": 1060,
            "menuName": "生成代码",
            "parentId": 115,
            "orderNum": 5,
            "path": "#",
            "component": "",
            "query": "",
            "isFrame": 1,
            "isCache": 0,
            "menuType": "F",
            "visible": "0",
            "status": "0",
            "perms": "tool:gen:code",
            "icon": "#",
            "createBy": "admin",
            "createTime": "2023-04-01T12:17:22.000+00:00",
            "updateBy": "",
            "updateTime": null,
            "remark": "",
            "children": []
          }
        ]
      },
      {
        "menuId": 116,
        "menuName": "系统接口",
        "parentId": 3,
        "orderNum": 3,
        "path": "http://localhost:8080/swagger-ui/index.html",
        "component": "",
        "query": "",
        "isFrame": 0,
        "isCache": 0,
        "menuType": "C",
        "visible": "0",
        "status": "0",
        "perms": "tool:swagger:list",
        "icon": "swagger",
        "createBy": "admin",
        "createTime": "2023-04-01T12:17:22.000+00:00",
        "updateBy": "",
        "updateTime": null,
        "remark": "系统接口菜单",
        "children": []
      }
    ]
  },
  {
    "menuId": 4,
    "menuName": "博客网站",
    "parentId": 0,
    "orderNum": 4,
    "path": "http://www.gytlv.com/blog",
    "component": null,
    "query": "",
    "isFrame": 0,
    "isCache": 0,
    "menuType": "M",
    "visible": "0",
    "status": "0",
    "perms": "",
    "icon": "guide",
    "createBy": "admin",
    "createTime": "2023-04-09T05:53:27.000+00:00",
    "updateBy": "",
    "updateTime": null,
    "remark": "官网地址",
    "children": []
  }
]

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/417375.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

SpringMVC 01 -SpringMVC入门

高效学习习惯啊 坚持&#xff0c;比如这样经常更新博客&#xff0c;保持学习哈哈哈 SpringMVC-SpringMVC引入1 SpringMVC引入1.1 引言1.2 MVC架构1.2.1 概念1.2.2 好处1.2.3 执行流程【重点】2 快速入门2.1 导入依赖2.2 配置核心(前端)控制器2.3 springmvc核心配置文件2.4 创建…

开心档之C++ 修饰符类型

C 修饰符类型 目录 C 修饰符类型 实例 C 中的类型限定符 C 允许在 char、int 和 double 数据类型前放置修饰符。修饰符用于改变基本类型的含义&#xff0c;所以它更能满足各种情境的需求。 下面列出了数据类型修饰符&#xff1a; signedunsignedlongshort 修饰符 signed、…

Gitlab中Pipeline语法六

Gitlab中Pipeline语法 needs/include/extends nodes 阶段并行 - 可以无序执行作业,无序按照阶段顺序运行某些作业,可以让多个阶段同时运行. - 如果nedds:设置为指向因only/except规则而未实例化的作业,或者不存在,则创建管道时会出现yaml错误. stages:- build- test- depl…

Moviepy模块之视频添加字幕(二)

文章目录前言一、素材1.1 原视频1.2 字幕文件二、视频添加字幕2.1 引入库2.2 加载视频文件2.3 设置字幕的字体、大小、颜色2.4 加载字幕文件2.5 设置字幕位置2.6 将字幕添加到视频中2.7 保存带有字幕的视频文件三、新视频效果总结前言 大家好&#xff0c;我是空空star&#xff…

2023蓝桥杯C++A组题解(第十四届)

面向爆零选手 水平有限&#xff0c;将就着看&#xff0c;有空再补充后5题 目录 &#x1f92f;吐槽 &#x1f61f;A&#xff0c;2067: [蓝桥杯2023初赛] 幸运数 &#x1f61f;B&#xff0c;2068: [蓝桥杯2023初赛] 有奖问答 &#x1f33c;AC DFS &#x1f33c;AC DP &a…

Apache 配置与应用

目录构建虚拟 Web 主机基于域名的虚拟主机1&#xff0e;为虚拟主机提供域名解析2.为虚拟主机准备网页文档3.添加虚拟主机配置4.设置访问控制5.加载独立的配置文件6.在客户机中访问虚拟 Web 主机基于IP地址的虚拟主机基于端口的虚拟主机Apache 连接保持构建Web虚拟目录与用户授权…

基于html+css的盒子展示3

准备项目 项目开发工具 Visual Studio Code 1.44.2 版本: 1.44.2 提交: ff915844119ce9485abfe8aa9076ec76b5300ddd 日期: 2020-04-16T16:36:23.138Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.19044 项目…

[ 应急响应基础篇 ] 使用 Process Explorer 进程分析工具分析系统进程(附Process Explorer安装教程)

&#x1f36c; 博主介绍 &#x1f468;‍&#x1f393; 博主介绍&#xff1a;大家好&#xff0c;我是 _PowerShell &#xff0c;很高兴认识大家~ ✨主攻领域&#xff1a;【渗透领域】【数据通信】 【通讯安全】 【web安全】【面试分析】 &#x1f389;点赞➕评论➕收藏 养成习…

《C Primer Plus》第17章复习题与编程练习

《C Primer Plus》第17章复习题与编程练习复习题1. 定义一种数据类型涉及哪些内容&#xff1f;2. 为什么程序清单17.2只能沿一个方向遍历链表&#xff1f;如何修改struct film定义才能沿两个方向遍历链表&#xff1f;3. 什么是ADT&#xff1f;4. QueueIsEmpty()函数接受一个指向…

OpenAI创始人:GPT-4的研究起源和构建心法

OneFlow编译 翻译&#xff5c;杨婷、贾川、徐佳渝 三十年前&#xff0c;互联网&#xff08;Web 1.0&#xff09;时代开启。人们只能在笨重的电脑上用鼠标点击由HTML编写的网页文本&#xff0c;随后开始支持插入图片&#xff0c;可以上传视频&#xff0c;于是有了网络新闻、搜索…

MapReduce之WordCount案例实操

目录 前期准备&#xff1a; 本机测试&#xff1a; mapper阶段&#xff1a; Reduce阶段&#xff1a; Driver类&#xff1a; 集群测试&#xff1a; 前期准备&#xff1a; 因为MapReduce中案例比较多&#xff0c;所以需要单独创建一个工程 准备工作 创建工程后先改maven仓…

ssh远程端口转发

ssh远程转发的原理&#xff1a;内网主机开了一个程序去连接外网的服务器&#xff0c;一直等待外网的服务器来连接。 应用场景 设备 IP 备注 系统 内网电脑C 192.168.10.129 内网&#xff0c;可访问外网。SSH登陆端口为22。 linux 个人电脑A 动态变化 无公网IP Linux…

Java的Idea怎么用ChatGpt,让些代码变丝滑?

发现两款idea的AI插件神器&#xff0c;和一个AI编辑器 1、tabnine https://zhuanlan.zhihu.com/p/343938113 当提示代码出现后&#xff0c;其中 按tab键就可以通用提示出的代码了&#xff0c;alt[ 是换提示代码&#xff0c;试用期限为14天。&#xff08;注意标红的&#xff0…

获美国企业认可,中国大飞机取得重大突破,已具备挑战波音的实力

日前消息指美国通用电气资本航空服务公司订购了20架中国商飞C919客机&#xff0c;这是中国大飞机首次获得美国航空企业的认可&#xff0c;代表着中国大飞机的重大突破&#xff0c;证明中国的大飞机已达到国际先进水平。通用电气资本航空服务公司是全球最大的飞机租赁公司&#…

初学C++,坚决不能挂!

目录 1、C&#xff0b;&#xff0b;相对于C语言的不同 2、类&#xff08;class&#xff09; 3、类与实例&#xff08;对象&#xff09;的关系 4、头文件 5、命名空间 6、输入输出 7、位运算 8、基本数据类型 9、结构体和三目运算符 10、for循环 11、const 12、类型别…

SEEM:微软基于 CV 大模型新作,分割“瞬息全宇宙”

文 | 智商掉了一地交互式视觉分割新作&#xff0c;具有语义感知的新模型~自从 Meta 发布了“分割一切”的 SAM 之后&#xff0c;各种二创如雨后春笋般冒出&#xff0c;昨天微软的一篇论文又在推特上引起讨论&#xff0c;虽然最开始吸引小编的是它的名字——分割“瞬息全宇宙”&…

让技术造福残障人士,让开发助力无障碍

前言 随着互联网技术的快速发展&#xff0c;越来越多的领先技术运用到公益领域中来。运用科技来造福残障人士&#xff0c;比如前几年比较智能化的自动行走轮椅&#xff0c;盲人阅读器&#xff0c;以及聋哑人助听器等&#xff0c;都是通过科技来帮助残障人士方便生活的例子。作为…

OpenAI文档翻译——在不通的场景下如何更好的设计ChatGPT提示词

概述 OpenAI可以被广泛的应用于各种任务&#xff0c;他为各种模型提供使用简单而功能强大的API。你可以输入一些文本作为提示词&#xff0c;OpenAI则会生成对应的提示词补全&#xff0c;在使用过程中这就是会话形式以及能够记住上下文的体现。探索如何生成提示词的最好方法就是…

地图和规则来啦!全国大学生智能汽车竞赛百度创意组正式发布

‍‍「全国大学生智能汽车竞赛」是教育部倡导的大学生科技A类竞赛&#xff0c;是2022年全国普通高校大学生竞赛榜单内竞赛&#xff0c;中国高等教育学会将其列为含金量最高的大学生竞赛之一。在全国数百所高校的支持下&#xff0c;全国大学生智能汽车竞赛至今已成功举办了十七届…

2023AE软件、Adobe After Effects下载、安装教程

最后附下载地址 2023AE软件是一款由Adobe公司开发的视频编辑软件&#xff0c;也被称为Adobe After Effects。它在广告、电影、电视和网络视频等领域广泛应用&#xff0c;用于制作动态图形、特效、合成和其他视觉效果。该软件支持多种视频和音频文件格式&#xff0c;具有丰富的…