Compare commits

..

3 Commits

  1. 11
      src/components/mock/api_block.vue
  2. 18
      src/layout/components/PageAside.vue
  3. 4
      src/layout/index.vue
  4. 16
      src/router/index.js
  5. 12
      src/views/mock/index.vue

@ -0,0 +1,11 @@
<script setup>
</script>
<template>
</template>
<style scoped>
</style>

@ -5,22 +5,34 @@ import {
Location, Location,
Setting, Setting,
} from '@element-plus/icons-vue' } from '@element-plus/icons-vue'
import {useRoute} from "vue-router";
const route = useRoute()
</script> </script>
<template> <template>
<el-row class="tac"> <el-row class="tac">
<el-col :span="15"> <el-col :span="25">
<h5 class="mb-2">鼎新工具集</h5> <h5 class="mb-2">鼎新工具集</h5>
<el-menu <el-menu
default-active="1" default-active="1"
router
class="el-menu-vertical-demo" class="el-menu-vertical-demo"
> >
<el-menu-item index="1"> <el-menu-item index="update">
<el-icon> <el-icon>
<icon-menu/> <icon-menu/>
</el-icon> </el-icon>
<span>影院列表</span> <span>影院列表</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="mock">
<el-icon>
<icon-menu/>
</el-icon>
<span>专资接口模拟</span>
</el-menu-item>
</el-menu> </el-menu>
</el-col> </el-col>
</el-row> </el-row>
@ -29,4 +41,4 @@ import {
<style scoped> <style scoped>
</style> </style>

@ -16,7 +16,7 @@ import PageAside from "@/layout/components/PageAside.vue";
<PageHeader/> <PageHeader/>
</el-header> </el-header>
<el-main> <el-main>
<Index/> <router-view/>
</el-main> </el-main>
</el-container> </el-container>
</el-container> </el-container>
@ -31,4 +31,4 @@ el-container {
margin: 0; margin: 0;
height: 100%; height: 100%;
} }
</style> </style>

@ -3,12 +3,24 @@ import Layout from '@/layout/index.vue'
const routes = [ const routes = [
{ {
path: '/update', path: '/',
name: 'Home', name: 'Home',
component: Layout, component: Layout,
children: [
{
path: 'update',
name: 'Update',
component: () => import('@/views/update/index.vue')
},
{
path: 'mock',
name: 'Mock',
component: () => import('@/views/mock/index.vue')
}
]
} }
] ]
const router = createRouter({history: createWebHashHistory(), routes}) const router = createRouter({history: createWebHashHistory(), routes})
export default router export default router

@ -0,0 +1,12 @@
<script setup>
</script>
<template>
<el-divider content-position="left">接口</el-divider>
</template>
<style scoped>
</style>
Loading…
Cancel
Save