Pārlūkot izejas kodu

update AdminCategory.vue

reghao 3 mēneši atpakaļ
vecāks
revīzija
04315a14be
2 mainītis faili ar 2 papildinājumiem un 22 dzēšanām
  1. 1 6
      src/api/admin.js
  2. 1 16
      src/views/admin/site/AdminCategory.vue

+ 1 - 6
src/api/admin.js

@@ -15,8 +15,7 @@ const adminApi = {
   getAlbumsApi: '/api/admin/content/video/all',
   getArticlesApi: '/api/admin/content/video/all',
   getVideosApi: '/api/admin/content/vod/list',
-  getSiteNoticeApi: '/api/admin/content/vod/site_notice',
-  getVideoCategoryApi: '/api/admin/content/vod/video_category'
+  getSiteNoticeApi: '/api/admin/content/vod/site_notice'
 }
 
 export function getAccountRegistry() {
@@ -82,7 +81,3 @@ export function getVipPlan() {
 export function getSiteNotice() {
   return get(adminApi.getSiteNoticeApi)
 }
-
-export function getVideoCategory() {
-  return get(adminApi.getVideoCategoryApi)
-}

+ 1 - 16
src/views/admin/site/AdminCategory.vue

@@ -137,7 +137,7 @@
 
 <script>
 import { userMixin } from 'assets/js/mixin'
-import { getSiteNotice, getVideoCategory, getVipPlan } from '@/api/admin'
+import { getSiteNotice, getVipPlan } from '@/api/admin'
 import { videoCategories } from '@/api/video'
 
 export default {
@@ -187,21 +187,6 @@ export default {
         })
       })
 
-      getVideoCategory().then(resp => {
-        if (resp.code === 0) {
-          console.log(resp.data)
-        } else {
-          this.$message.error(resp.msg)
-        }
-      }).catch(error => {
-        this.$notify({
-          title: '提示',
-          message: error.message,
-          type: 'warning',
-          duration: 3000
-        })
-      })
-
       videoCategories().then(resp => {
         if (resp.code === 0) {
           this.treeNode = resp.data