Bläddra i källkod

删除 admin 相关的路由和页面

reghao 2 år sedan
förälder
incheckning
8cef82dab4

+ 0 - 38
src/components/admin/AdminEditVideo.vue

@@ -1,38 +0,0 @@
-<template>
-  <el-row class="movie-list">
-  </el-row>
-</template>
-
-<script>
-export default {
-  name: 'AdminEditVideo',
-  data() {
-    return {
-    }
-  },
-  created() {
-    document.title = '管理员编辑视频'
-
-    const videoId = this.$route.params.videoId
-  },
-  methods: {
-  }
-}
-</script>
-
-<style>
-/*处于手机屏幕时*/
-@media screen and (max-width: 768px){
-  .movie-list {
-    padding-top: 8px;
-    padding-left: 0.5%;
-    padding-right: 0.5%;
-  }
-}
-
-.movie-list {
-  padding-top: 15px;
-  padding-left: 6%;
-  padding-right: 6%;
-}
-</style>

+ 0 - 49
src/router/index.js

@@ -66,15 +66,6 @@ const PostList = () => import('views/post/PostList')
 const PostAnalysis = () => import('views/post/PostAnalysis')
 const MessageIndex = () => import('views/message/Message')
 
-const Admin = () => import('views/admin/AdminUser')
-const AdminUser = () => import('views/admin/AdminUser')
-const AdminPost = () => import('views/admin/AdminPost')
-const AdminPostVideo = () => import('views/admin/AdminPost')
-const AdminPostAudio = () => import('views/admin/AdminPost')
-const AdminPostImage = () => import('views/admin/AdminPost')
-const AdminPostArticle = () => import('views/admin/AdminPost')
-const AdminEditVideo = () => import('components/admin/AdminEditVideo')
-
 // 使用安装路由插件
 Vue.use(VueRouter)
 const routes = [
@@ -478,46 +469,6 @@ const routes = [
     name: 'Vip',
     component: Vip
   },
-  {
-    path: '/admin',
-    name: 'Admin',
-    component: Admin
-  },
-  {
-    path: '/admin/user',
-    name: 'AdminUser',
-    component: AdminUser
-  },
-  {
-    path: '/admin/post',
-    name: 'AdminPost',
-    component: AdminPost
-  },
-  {
-    path: '/admin/post/video',
-    name: 'AdminPostVideo',
-    component: AdminPostVideo
-  },
-  {
-    path: '/admin/post/image',
-    name: 'AdminPostImage',
-    component: AdminPostImage
-  },
-  {
-    path: '/admin/post/audio',
-    name: 'AdminPostAudio',
-    component: AdminPostAudio
-  },
-  {
-    path: '/admin/post/article',
-    name: 'AdminPostArticle',
-    component: AdminPostArticle
-  },
-  {
-    path: '/admin/edit/video/:videoId',
-    name: 'AdminEditVideo',
-    component: AdminEditVideo
-  },
   {
     path: '*',
     name: '404',

+ 0 - 28
src/views/admin/AdminPost.vue

@@ -1,28 +0,0 @@
-<template>
-  <el-row>
-  </el-row>
-</template>
-
-<script>
-export default {
-  name: 'AdminPost',
-  components: {},
-  data() {
-    return {
-    }
-  },
-  created() {
-    document.title = "稿件管理"
-  },
-  watch: {
-    $route(){
-      this.$router.go()
-    }
-  },
-  methods: {
-  }
-}
-</script>
-
-<style>
-</style>

+ 0 - 28
src/views/admin/AdminUser.vue

@@ -1,28 +0,0 @@
-<template>
-  <el-row>
-  </el-row>
-</template>
-
-<script>
-export default {
-  name: 'AdminUser',
-  components: {},
-  data() {
-    return {
-    }
-  },
-  created() {
-    document.title = "用户管理"
-  },
-  watch: {
-    $route(){
-      this.$router.go()
-    }
-  },
-  methods: {
-  }
-}
-</script>
-
-<style>
-</style>