ZhangXianQiang
2024-06-28 138e7f7c49d854fc3c7ea662800231fad6e73c9e
feat:教学资源
2个文件已修改
1个文件已添加
39 ■■■■■ 已修改文件
src/router/index.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/folder/index.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/menu/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js
@@ -60,6 +60,12 @@
    path: '/grade',
    component: () => import('@/views/grade/index.vue'),
  },
  // 教学资源
  {
    path: '/folder',
    component: () => import('@/views/folder/index.vue'),
  },
];
const router = createRouter({
src/views/folder/index.vue
New file
@@ -0,0 +1,26 @@
<template>
  <div class="folder-container w-screen h-screen bg-slate-50 flex flex-col items-center">
    <NormalHeader class="shrink-0"></NormalHeader>
    <div class="list-container container grow relative">
      <div class="list-content absolute top-0 bottom-0 left-0 right-0 py-4">
        <div class="list-wrapper w-full h-full">
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue';
import NormalHeader from '@/components/NormalHeader/index.vue';
import { Search } from '@element-plus/icons-vue';
const loading = ref(false);
</script>
<style lang="scss" scoped>
</style>
src/views/menu/index.vue
@@ -37,7 +37,12 @@
        title: '在线培训',
        iconPath: new URL('@/assets/icons/icon2.png', import.meta.url).href,
        path: '/train'
      }
      },
      {
        title: '教学资源',
        iconPath: new URL('@/assets/icons/icon1.png', import.meta.url).href,
        path: '/folder'
      },
    ]
  },
  {