Просмотр исходного кода

删除 router/my.js 和 router/vod.js

reghao 6 месяцев назад
Родитель
Сommit
3a96c83bee

+ 7 - 11
src/router/admin.js

@@ -1,3 +1,5 @@
+// ********************************************************************************************************************
+// 后台管理主页
 const Admin = () => import('views/admin/Admin')
 const AdminBackendLog = () => import('views/admin/AdminBackendLog')
 const AdminAccessLog = () => import('views/admin/AdminAccessLog')
@@ -23,14 +25,14 @@ const MyWallet = () => import('views/my/MyWallet')
 const PostIndex = () => import('views/post/PostIndex')
 const PostAnalysis = () => import('views/post/PostAnalysis')
 const History = () => import('views/post/History')
-const PostAlbum = () => import('views/post/PostAlbum')
+const AlbumPost = () => import('views/post/AlbumPost')
 // 稿件后台管理
 const VideoPost = () => import('views/post/VideoPost')
 const VideoPostEdit = () => import('views/post/VideoPostEdit')
 const ImagePost = () => import('views/post/ImagePost')
 const ImagePostEdit = () => import('views/post/ImagePostEdit')
 const ArticlePost = () => import('views/post/ArticlePost')
-const ArticlePostEdit = () => import('components/upload/EditArticle')
+const ArticlePostEdit = () => import('views/post/ArticlePostEdit')
 
 export default {
   path: '/background',
@@ -78,8 +80,8 @@ export default {
       children: [
         {
           path: '/background/my/album',
-          name: 'PostAlbum',
-          component: PostAlbum,
+          name: 'AlbumPost',
+          component: AlbumPost,
           meta: { needAuth: true }
         },
         {
@@ -145,13 +147,7 @@ export default {
           meta: { needAuth: true }
         },
         {
-          path: '/background/post/image_edit',
-          name: 'ImagePostEdit',
-          component: ImagePostEdit,
-          meta: { needAuth: true }
-        },
-        {
-          path: '/background/post/image/edit/:imageId',
+          path: '/background/post/image/edit/:albumId',
           name: 'ImagePostEdit',
           component: ImagePostEdit,
           meta: { needAuth: true }

+ 0 - 4
src/router/index.js

@@ -1,10 +1,8 @@
 import VueRouter from 'vue-router'
 import Vue from 'vue'
-import MyRouter from './my'
 import UserRouter from './user'
 import ExamRouter from './exam'
 import MallRouter from './mall'
-import VodRouter from './vod'
 import MapRouter from './map'
 import ChartRouter from './chart'
 import GeoRouter from './geo'
@@ -41,12 +39,10 @@ const Discover = () => import('views/home/Discover')
 // 使用安装路由插件
 Vue.use(VueRouter)
 const routes = [
-  MyRouter,
   ExamRouter,
   UserRouter,
   MallRouter,
   MapRouter,
-  VodRouter,
   ChartRouter,
   GeoRouter,
   SearchRouter,

+ 0 - 59
src/router/my.js

@@ -1,59 +0,0 @@
-const My = () => import('views/my/My')
-const MyProfile = () => import('views/my/MyProfile')
-const MyOAuth = () => import('views/my/MyOAuth')
-const MyRcmd = () => import('views/my/MyRcmd')
-const MyMessage = () => import('views/my/MyMessage')
-const MyRecord = () => import('views/my/MyRecord')
-const MyVip = () => import('views/my/MyVip')
-const MyWallet = () => import('views/my/MyWallet')
-
-export default {
-  path: '/my',
-  name: 'My',
-  component: My,
-  meta: { needAuth: true },
-  children: [
-    {
-      path: '',
-      name: '个人资料',
-      component: MyProfile,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/my/vip',
-      name: '小会员',
-      component: MyVip,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/my/wallet',
-      name: '钱包',
-      component: MyWallet,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/my/record',
-      name: '我的登入历史',
-      component: MyRecord,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/my/message',
-      name: '我的消息',
-      component: MyMessage,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/my/oauth',
-      name: 'OAuth',
-      component: MyOAuth,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/my/rcmd',
-      name: 'Rcmd',
-      component: MyRcmd,
-      meta: { needAuth: true }
-    }
-  ]
-}

+ 0 - 158
src/router/vod.js

@@ -1,158 +0,0 @@
-// 稿件
-const Post = () => import('views/post/Post')
-const History = () => import('views/post/History')
-const PostAlbum = () => import('views/post/PostAlbum')
-const PostAnalysis = () => import('views/post/PostAnalysis')
-const PostPublishFile = () => import('components/upload/PublishFile')
-const VideoPostList = () => import('views/post/VideoPost')
-const VideoPostPublish = () => import('views/post/VideoPostPublish')
-const VideoPostEdit = () => import('views/post/VideoPostEdit')
-const PostPublishAudio = () => import('components/upload/PublishAudio')
-const UserPostAudio = () => import('views/post/AudioPost')
-const PostEditAudio = () => import('components/upload/EditAudio')
-const PostPublishAlbum = () => import('components/upload/PublishImage')
-const UserPostImage = () => import('views/post/ImagePost')
-const ImagePostEdit = () => import('views/post/ImagePostEdit')
-// const PostPublishArticle = () => import('components/upload/PublishArticle')
-const PostPublishArticle = () => import('components/upload/PublishRichText')
-const UserPostArticle = () => import('views/post/ArticlePost')
-const PostEditArticle = () => import('components/upload/EditArticle')
-
-export default {
-  path: '/post',
-  name: 'Post',
-  component: Post,
-  meta: { needAuth: true },
-  children: [
-    {
-      path: '',
-      name: 'PostIndex',
-      component: PostAnalysis,
-      meta: { needAuth: true }
-    },
-    // ********************************************************************************************************************
-    {
-      path: '/post/article/list',
-      name: '文章稿件',
-      component: UserPostArticle,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/article/publish',
-      name: '发布文章',
-      component: PostPublishArticle,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/publish/audio',
-      name: '发布音频',
-      component: PostPublishAudio,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/list/audio',
-      name: '音频稿件',
-      component: UserPostAudio,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/edit/audio/:audioId',
-      name: 'PostEditAudio',
-      component: PostEditAudio,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/edit/article/:articleId',
-      name: 'PostEditArticle',
-      component: PostEditArticle,
-      meta: { needAuth: true }
-    },
-    // ********************************************************************************************************************
-    {
-      path: '/post/video/file',
-      name: '发布文件',
-      component: PostPublishFile,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/video/publish',
-      name: '发布视频',
-      component: VideoPostPublish,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/video/list',
-      name: '视频列表',
-      component: VideoPostList,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/list/video',
-      name: '视频稿件',
-      component: VideoPostList,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/image/list',
-      name: '图片稿件',
-      component: UserPostImage,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/video/edit/:videoId',
-      name: 'VideoPostEdit',
-      component: VideoPostEdit,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/publish/video',
-      name: '发布视频',
-      component: VideoPostPublish,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/history',
-      name: '历史记录',
-      component: History,
-      meta: { needAuth: true }
-    },
-    // ********************************************************************************************************************
-    {
-      path: '/post/album/publish',
-      name: '发布相册',
-      component: PostPublishAlbum,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/album/list',
-      name: '稿件合集',
-      component: UserPostImage,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/image/edit/:albumId',
-      name: 'ImagePostEdit',
-      component: ImagePostEdit,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/list/image',
-      name: '相册稿件',
-      component: UserPostImage,
-      meta: { needAuth: true }
-    },
-    {
-      path: '/post/publish/image',
-      name: '发布相册',
-      component: PostPublishAlbum,
-      meta: { needAuth: true }
-    },
-    // ********************************************************************************************************************
-    {
-      path: '/post/album',
-      name: 'PostAlbum',
-      component: PostAlbum,
-      meta: { needAuth: true }
-    }
-  ]
-}

+ 9 - 30
src/views/admin/TopNav.vue

@@ -1,8 +1,11 @@
 <template>
-  <el-menu class="el-menu-demo" mode="horizontal" background-color="#334157" text-color="#fff" active-text-color="#fff">
-    <!--    <el-button class="buttonimg">
-      <img class="showimg" :src="collapsed ? imgshow : imgsq" @click="doToggle()">
-    </el-button>-->
+  <el-menu
+    class="el-menu-demo"
+    mode="horizontal"
+    background-color="#334157"
+    text-color="#fff"
+    active-text-color="#fff"
+  >
     <el-button
       class="button_icon"
       :icon="collapsed ? 'el-icon-s-fold' : 'el-icon-s-unfold'"
@@ -14,10 +17,6 @@
         <i class="el-icon-s-home" />
         <span slot="title">回到主站</span>
       </el-menu-item>
-      <el-menu-item index="2-2" @click="onClickUser">
-        <i class="el-icon-user" />
-        <span slot="title">个人中心</span>
-      </el-menu-item>
       <el-menu-item index="2-3" @click.native="goToLogout">
         <i class="el-icon-close" />
         <span slot="title">登出</span>
@@ -45,7 +44,8 @@ export default {
     this.user = getAuthedUser()
   },
   methods: {
-    doToggle() { // 主要控制collapsed为true和false
+    doToggle() {
+      // 主要控制 collapsed 为 true 或 false
       this.collapsed = !this.collapsed
       this.$root.Bus.$emit('Handle', this.collapsed)
     },
@@ -56,9 +56,6 @@ export default {
         return
       }
       this.$router.push(path)
-    },
-    onClickUser() {
-      this.$message.info('click user')
     }
   }
 }
@@ -73,27 +70,9 @@ export default {
   float: right;
 }
 
-.buttonimg {
-  height: 60px;
-  background-color: transparent;
-  border: none;
-}
-
 .button_icon {
   height: 60px;
   background-color: transparent;
   border: none;
 }
-
-.showimg {
-  width: 26px;
-  height: 26px;
-  position: absolute;
-  top: 17px;
-  left: 17px;
-}
-
-.showimg:active {
-  border: none;
-}
 </style>

+ 0 - 110
src/views/my/My.vue

@@ -1,110 +0,0 @@
-<template>
-  <el-container style="height: 960px; border: 1px solid #eee">
-    <el-header style="text-align: right; font-size: 12px">
-      <el-col :md="2">
-        <ul class="el-menu--horizontal el-menu">
-          <li class="el-menu-item">
-            <a href="/my" style="text-decoration-line: none">
-              <img src="@/assets/img/icon/logo.png" class="el-avatar--circle el-avatar--medium" alt="img">
-              My
-            </a>
-          </li>
-        </ul>
-      </el-col>
-      <el-dropdown>
-        <img
-          :src="user.avatarUrl"
-          class="el-avatar--circle el-avatar--medium"
-          style="margin-right: 10px; margin-top: 15px"
-          alt=""
-        >
-        <el-dropdown-menu slot="dropdown">
-          <el-dropdown-item
-            icon="el-icon-s-platform"
-            class="size"
-            @click.native="goToHome"
-          >主站</el-dropdown-item>
-          <el-dropdown-item
-            icon="el-icon-error"
-            class="size"
-            @click.native="goToLogout"
-          >退出</el-dropdown-item>
-        </el-dropdown-menu>
-      </el-dropdown>
-    </el-header>
-    <el-container>
-      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
-        <el-menu
-          :default-active="this.$route.path"
-          router
-          class="el-menu-vertical-demo"
-          :unique-opened="true"
-        >
-          <el-menu-item index="/my/record">
-            <i class="el-icon-message" />
-            <span slot="title">登入历史</span>
-          </el-menu-item>
-          <el-menu-item index="/my/message">
-            <i class="el-icon-message" />
-            <span slot="title">我的消息</span>
-          </el-menu-item>
-          <el-menu-item index="/my/vip">
-            <i class="el-icon-film" />
-            <span slot="title">我的会员</span>
-          </el-menu-item>
-          <el-menu-item index="/my/wallet">
-            <i class="el-icon-wallet" />
-            <span slot="title">我的钱包</span>
-          </el-menu-item>
-          <el-menu-item index="/my/oauth">
-            <i class="el-icon-film" />
-            <span slot="title">OAuth</span>
-          </el-menu-item>
-          <el-menu-item index="/my/rcmd">
-            <i class="el-icon-film" />
-            <span slot="title">我的推荐</span>
-          </el-menu-item>
-        </el-menu>
-      </el-aside>
-      <el-main>
-        <router-view />
-      </el-main>
-    </el-container>
-  </el-container>
-</template>
-
-<script>
-import { userMixin } from 'assets/js/mixin'
-import { getAuthedUser } from '@/utils/auth'
-
-export default {
-  name: 'My',
-  mixins: [userMixin],
-  data() {
-    return {
-      user: null,
-      loginUser: null
-    }
-  },
-  created() {
-    document.title = '我的帐号'
-    const userInfo = getAuthedUser()
-    if (userInfo !== null) {
-      this.user = userInfo
-      this.loginUser = userInfo
-    }
-  }
-}
-</script>
-
-<style>
-.el-header {
-  background-color: #B3C0D1;
-  color: #333;
-  line-height: 60px;
-}
-
-.el-aside {
-  color: #333;
-}
-</style>

+ 9 - 8
src/views/my/MyRecord.vue

@@ -61,19 +61,20 @@ export default {
   },
   created() {
     document.title = '我的登入历史'
-
-    getLoginRecord().then(resp => {
-      if (resp.code === 0) {
-        this.dataList = resp.data
-      }
-    })
+    this.getLoginRecordWrapper()
   },
   methods: {
+    getLoginRecordWrapper() {
+      getLoginRecord().then(resp => {
+        if (resp.code === 0) {
+          this.dataList = resp.data
+        }
+      })
+    },
     logout(row) {
       signOut(row.loginId).then(resp => {
         if (resp.code === 0) {
-          this.$message('已处理')
-          this.dataList.pop()
+          this.getLoginRecordWrapper()
         }
       })
     }

+ 3 - 3
src/views/post/PostAlbum.vue → src/views/post/AlbumPost.vue

@@ -132,7 +132,7 @@ import {
 } from '@/api/collect'
 
 export default {
-  name: 'PostAlbum',
+  name: 'AlbumPost',
   filters: {
     ellipsis(value) {
       if (!value) return ''
@@ -193,7 +193,7 @@ export default {
       this.currentPage = 1
       this.getData()
       this.$router.push({
-        path: '/post/album',
+        path: '/background/my/album',
         query: this.queryInfo
       })
     },
@@ -202,7 +202,7 @@ export default {
       this.queryInfo.pn = pageNumber
       // this.getData()
       this.$router.push({
-        path: '/post/album',
+        path: '/background/my/album',
         query: this.queryInfo
       })
       // 回到顶部

+ 1 - 1
src/views/post/ArticlePost.vue

@@ -165,7 +165,7 @@ export default {
       this.showEditScopeDialog = true
     },
     handleEdit(index, row) {
-      const path = '/post/edit/article/' + row.articleId
+      const path = '/background/post/article/edit/' + row.articleId
       this.$router.push(path)
     },
     handleDelete(index, row) {

+ 2 - 2
src/components/upload/EditArticle.vue → src/views/post/ArticlePostEdit.vue

@@ -46,7 +46,7 @@ import RichText from '@/components/RichText'
 import { getArticlePost, updateArticleContent } from '@/api/article'
 
 export default {
-  name: 'EditArticle',
+  name: 'ArticlePostEdit',
   components: { RichText },
   data() {
     return {
@@ -81,7 +81,7 @@ export default {
       this.form.content = value
     },
     onReturnArticle() {
-      this.$router.push('/post/list/article')
+      this.$router.push('/background/post/article')
     },
     onUpdateArticleContent() {
       updateArticleContent(this.form).then(resp => {

+ 2 - 2
src/components/upload/PublishArticle.vue → src/views/post/ArticlePostPublish.vue

@@ -25,7 +25,7 @@ import RichText from '@/components/RichText'
 import { submitArticle } from '@/api/article'
 
 export default {
-  name: 'PublishArticle',
+  name: 'ArticlePostPublish',
   components: { RichText },
   data() {
     return {
@@ -53,7 +53,7 @@ export default {
             type: 'warning',
             duration: 3000
           })
-          this.$router.push('/post/list/article')
+          this.$router.push('/background/post/article')
         } else {
           this.$notify({
             title: '提示',

+ 1 - 1
src/views/post/ImagePost.vue

@@ -177,7 +177,7 @@ export default {
       })
     },
     handleEdit(index, row) {
-      const path = '/post/image/edit/' + row.albumId
+      const path = '/background/post/image/edit/' + row.albumId
       this.$router.push(path)
     },
     onCreateAlbum() {

+ 1 - 1
src/views/post/ImagePostEdit.vue

@@ -249,7 +249,7 @@ export default {
       })
     },
     onReturnAlbum() {
-      this.$router.push('/post/image/list')
+      this.$router.push('/background/post/image')
     }
   }
 }

+ 0 - 129
src/views/post/Post.vue

@@ -1,129 +0,0 @@
-<template>
-  <el-container style="height: 800px; border: 1px solid #eee">
-    <el-header style="text-align: right; font-size: 12px">
-      <el-col :md="2">
-        <ul class="el-menu--horizontal el-menu">
-          <li class="el-menu-item">
-            <a href="/post" style="text-decoration-line: none">
-              <img src="@/assets/img/icon/logo.png" class="el-avatar--circle el-avatar--medium" alt="img">
-              MyPost
-            </a>
-          </li>
-        </ul>
-      </el-col>
-      <el-col :md="10">
-        <el-radio-group v-model="isCollapse" size="mini">
-          <el-radio-button :label="false">展开</el-radio-button>
-          <el-radio-button :label="true">收起</el-radio-button>
-        </el-radio-group>
-      </el-col>
-      <el-dropdown>
-        <img
-          :src="user.avatarUrl"
-          class="el-avatar--circle el-avatar--medium"
-          style="margin-right: 10px; margin-top: 15px"
-          alt=""
-        >
-        <el-dropdown-menu slot="dropdown">
-          <el-dropdown-item
-            icon="el-icon-s-platform"
-            class="size"
-            @click.native="goToHome"
-          >主站</el-dropdown-item>
-          <el-dropdown-item
-            icon="el-icon-error"
-            class="size"
-            @click.native="goToLogout"
-          >退出</el-dropdown-item>
-        </el-dropdown-menu>
-      </el-dropdown>
-    </el-header>
-    <el-container>
-      <el-row>
-      </el-row>
-      <el-row>
-        <el-menu
-          :default-active="this.$route.path"
-          router
-          class="el-menu-vertical-demo"
-          :unique-opened="true"
-          :collapse="isCollapse"
-        >
-          <el-submenu index="/post/video">
-            <template slot="title">
-              <i class="el-icon-files" />
-              <span slot="title">稿件管理</span>
-            </template>
-            <el-menu-item-group>
-              <el-menu-item index="/post/video/list">
-                <i class="el-icon-film" />
-                <span slot="title">视频稿件</span>
-              </el-menu-item>
-              <el-menu-item index="/post/image/list">
-                <i class="el-icon-picture" />
-                <span slot="title">图片稿件</span>
-              </el-menu-item>
-              <el-menu-item index="/post/article/list">
-                <i class="el-icon-picture" />
-                <span slot="title">文章稿件</span>
-              </el-menu-item>
-            </el-menu-item-group>
-          </el-submenu>
-          <el-menu-item index="/post/album">
-            <i class="el-icon-collection" />
-            <span slot="title">播放列表</span>
-          </el-menu-item>
-          <el-menu-item index="/post/history">
-            <i class="el-icon-s-data" />
-            <span slot="title">历史记录</span>
-          </el-menu-item>
-        </el-menu>
-      </el-row>
-      <el-main>
-        <router-view />
-      </el-main>
-    </el-container>
-  </el-container>
-</template>
-
-<script>
-import { userMixin } from 'assets/js/mixin'
-import { getAuthedUser } from '@/utils/auth'
-
-export default {
-  name: 'Post',
-  mixins: [userMixin],
-  data() {
-    return {
-      user: null,
-      loginUser: null,
-      isCollapse: true
-    }
-  },
-  created() {
-    document.title = '我的稿件'
-    const userInfo = getAuthedUser()
-    if (userInfo !== null) {
-      this.user = userInfo
-      this.loginUser = userInfo
-    }
-  }
-}
-</script>
-
-<style>
-.el-header {
-  background-color: #B3C0D1;
-  color: #333;
-  line-height: 60px;
-}
-
-.el-aside {
-  color: #333;
-}
-
-.el-menu-vertical-demo:not(.el-menu--collapse) {
-  width: 200px;
-  min-height: 400px;
-}
-</style>

+ 0 - 147
src/views/post/PostPublish.vue

@@ -1,147 +0,0 @@
-<template>
-  <el-row>
-    <el-col :md="2">
-      <el-menu
-        :default-active="this.$route.path"
-        router
-        class="el-menu-vertical-demo"
-      >
-        <el-menu-item v-for="(item,i) in navList" :key="i" :index="item.path">
-          <i :class="item.icon" />
-          <span slot="title">{{ item.name }}</span>
-        </el-menu-item>
-      </el-menu>
-    </el-col>
-    <el-col :md="22">
-      <el-tabs v-model="activeName" @tab-click="tabClick">
-        <el-tab-pane label="视频" name="video">
-          <video-post-publish v-if="activeName === 'video'"/>
-        </el-tab-pane>
-        <el-tab-pane label="音频" name="audio">
-          <publish-audio v-if="activeName === 'audio'" />
-        </el-tab-pane>
-        <el-tab-pane label="相册" name="image">
-          <publish-image v-if="activeName === 'image'" />
-        </el-tab-pane>
-        <el-tab-pane label="文章" name="article">
-          <publish-article v-if="activeName === 'article'" />
-        </el-tab-pane>
-        <el-tab-pane label="文件" name="file">
-          <publish-file v-if="activeName === 'file'" />
-        </el-tab-pane>
-      </el-tabs>
-    </el-col>
-  </el-row>
-</template>
-
-<script>
-import VideoPostPublish from '@/views/post/VideoPostPublish'
-import PublishAudio from '@/components/upload/PublishAudio'
-import PublishImage from '@/components/upload/PublishImage'
-import PublishArticle from '@/components/upload/PublishArticle'
-import PublishFile from '@/components/upload/PublishFile'
-
-export default {
-  name: 'PostPublish',
-  components: { VideoPostPublish, PublishAudio, PublishImage, PublishArticle, PublishFile },
-  data() {
-    return {
-      navList: [
-        { path: '/post/publish', name: '发布', icon: 'el-icon-upload' },
-        { path: '/post/list', name: '稿件', icon: 'el-icon-files' },
-        { path: '/post/analysis', name: '数据', icon: 'el-icon-data-analysis' }
-      ],
-      activeName: 'video',
-      coverUrl: null,
-      videoUrlId: null,
-      coverFile: null,
-      dialogImageUrl: '',
-      dialogVisible: false,
-      disabled: false,
-      imageList: [],
-      imageUrl: ''
-    }
-  },
-  watch: {
-    $route() {
-      this.$router.go()
-    }
-  },
-  created() {
-    const path = this.$route.path
-    if (path.endsWith('image')) {
-      this.activeName = 'image'
-      document.title = '发布图片'
-    } else if (path.endsWith('audio')) {
-      this.activeName = 'audio'
-      document.title = '发布音频'
-    } else if (path.endsWith('article')) {
-      this.activeName = 'article'
-      document.title = '发布文章'
-    } else if (path.endsWith('file')) {
-      this.activeName = 'file'
-      document.title = '发布文件'
-    } else {
-      this.activeName = 'video'
-      document.title = '发布视频'
-    }
-  },
-  methods: {
-    tabClick(tab) {
-      this.activeName = tab.name
-      this.goToTab(this.activeName)
-    },
-    goToTab(activeName) {
-      const path = '/post/publish/' + activeName
-      if (this.$route.path === path) {
-        this.$router.go(0)
-        return
-      }
-      this.$router.push(path)
-    }
-  }
-}
-</script>
-
-<style>
-.uploader-example {
-  width: 500px;
-  padding: 15px;
-  margin: 40px auto 0;
-  font-size: 12px;
-  box-shadow: 0 0 10px rgba(0, 0, 0, .4);
-}
-.uploader-example .uploader-btn {
-  margin-right: 4px;
-}
-.uploader-example .uploader-list {
-  max-height: 440px;
-  overflow: auto;
-  overflow-x: hidden;
-  overflow-y: auto;
-}
-
-.avatar-uploader .el-upload {
-  border: 1px dashed #d9d9d9;
-  border-radius: 6px;
-  cursor: pointer;
-  position: relative;
-  overflow: hidden;
-}
-.avatar-uploader .el-upload:hover {
-  border-color: #409EFF;
-}
-.avatar-uploader-icon {
-  font-size: 28px;
-  color: #8c939d;
-  width: 320px;
-  height: 240px;
-  line-height: 178px;
-  text-align: center;
-}
-.avatar {
-  width: 320px;
-  height: 240px;
-  display: block;
-}
-</style>

+ 2 - 2
src/views/post/VideoPost.vue

@@ -332,7 +332,7 @@ export default {
       })
     },
     handleEdit(index, row) {
-      const path = '/post/video/edit/' + row.videoId
+      const path = '/background/post/video/edit/' + row.videoId
       this.$router.push(path)
     },
     handleDelete(index, row) {
@@ -394,7 +394,7 @@ export default {
             type: 'warning',
             duration: 3000
           })
-          this.$router.push('/post/list/video')
+          this.$router.push('/background/post/video')
         } else {
           this.$notify({
             title: '提示',

+ 1 - 1
src/views/post/VideoPostEdit.vue

@@ -288,7 +288,7 @@ export default {
     },
     // ****************************************************************************************************************
     onReturnVideo() {
-      this.$router.push('/post/list/video')
+      this.$router.push('/background/post/video')
     },
     onUpdateVideoInfo() {
       updateVideoInfo(this.videoInfoForm).then(res => {