董国庆
2025-03-31 12a48c637cca91d063db7a5d5242f001237814f2
创建路由
1个文件已修改
1个文件已添加
35 ■■■■■ 已修改文件
src/router/index.js 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dispatching/list.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js
@@ -38,11 +38,27 @@
                component: () => import("../views/login"),
            },
        ],
    },{
        path: "",
        redirect: "dispatching",
        component: Layouts,
        children: [
            {
                path: "/dispatching",
                meta: {
                    title: "实验调度管理",
                    oneself: true,
                    hide: true,
                    privilege: 'dispatching'
                },
                component: () => import("../views/dispatching/list.vue"),
            },
        ],
    },
];
const router = new VueRouter({
    mode: "history",
    mode: "hash",
    base: process.env.BASE_URL,
    routes,
});
src/views/dispatching/list.vue
New file
@@ -0,0 +1,17 @@
<template>
    <div>这是列表</div>
  </template>
  <script>
  export default {
    name: 'dispatchList',
    data() {
      return {
      }
    },
    created() {
    }
  }
  </script>
  <style scoped></style>