人生啊人生 3 месяцев назад
Родитель
Сommit
6fdfabcf6a
3 измененных файлов с 58 добавлено и 0 удалено
  1. 16 0
      user_web/src/router/adminRoute.ts
  2. 2 0
      user_web/src/router/index.ts
  3. 40 0
      user_web/src/view/admin/Main.vue

+ 16 - 0
user_web/src/router/adminRoute.ts

@@ -0,0 +1,16 @@
+const adminRoute = {
+    path: '/admin',
+    name: 'admin',
+    component: () => import('../view/student/layout/index.vue'),
+    meta: { title: '后台管理-首页' },
+    children: [
+        // {
+        //     path: '/train/list',
+        //     name: 'trainList',
+        //     component: () => import('../view/student/trainList/trainList.vue'),
+        //     meta: { title: '实训列表' },
+        // },
+    ],
+};
+
+export default adminRoute;

+ 2 - 0
user_web/src/router/index.ts

@@ -1,5 +1,6 @@
 import { createRouter, createWebHashHistory } from 'vue-router';
 import studentRoute from './studentRoute';
+import adminRoute from './adminRoute';
 
 const routes = [
     {
@@ -83,6 +84,7 @@ const routes = [
     },
 ];
 routes.push(studentRoute);
+routes.push(adminRoute);
 
 const router = createRouter({
     history: createWebHashHistory(),

+ 40 - 0
user_web/src/view/admin/Main.vue

@@ -0,0 +1,40 @@
+<script setup>
+import { computed, onMounted, onUnmounted, watch, ref } from "vue";
+import { useRouter } from 'vue-router';
+const router = useRouter();
+
+</script>
+
+<template>
+    <div class="main commonsScrollbar">
+        后台管理-首页
+    </div>
+</template>
+
+<style lang="less" scoped>
+
+* {
+    box-sizing:border-box;
+    -moz-box-sizing:border-box; /* Firefox */
+    -webkit-box-sizing:border-box; /* Safari */
+}
+
+.main * {
+    -moz-user-select: none;
+    -webkit-user-select: none;
+    -ms-user-select: none;
+    -khtml-user-select: none;
+    user-select: none;
+}
+
+.main {
+
+    position: fixed;
+    z-index: 0;
+    width: 100%;
+    height: 100%;
+    top: 0px;
+    left: 0px;
+    
+}
+</style>