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

【模版目录】移除无用接口

From-wh 3 лет назад
Родитель
Сommit
f306cab804
2 измененных файлов с 0 добавлено и 31 удалено
  1. 0 6
      template/admin/src/api/index.js
  2. 0 25
      template/admin/src/pages/index/index.vue

+ 0 - 6
template/admin/src/api/index.js

@@ -50,9 +50,3 @@ export function rankApi() {
   });
 }
 
-export function checkAuth() {
-  return request({
-    url: 'check_auth',
-    method: 'get',
-  });
-}

+ 0 - 25
template/admin/src/pages/index/index.vue

@@ -20,7 +20,6 @@ import visitChart from './components/visitChart';
 import userChart from './components/userChart';
 import hotSearch from './hot-search';
 import userPreference from './user-preference';
-import { checkAuth } from '@/api/index';
 import { auth } from '@/api/system';
 import { Notice } from 'iview';
 import { getCookies, setCookies } from '@/libs/util';
@@ -45,30 +44,6 @@ export default {
     };
   },
   mounted() {
-    if (!getCookies('auth')) {
-      checkAuth()
-        .then((res) => {
-          // return Notice.warning({
-          //     title: '授权提醒',
-          //     duration: 0,
-          //     desc: res.msg,
-          //     render: h => {
-          //         return h('div', [
-          //             h('a', {
-          //                 attrs: {
-          //                     href: 'http://www.crmeb.com/home/grant/applyauthorize.html',
-          //                     target: '_blank'
-          //                 }
-          //             }, res.msg)
-          //         ])
-          //     },
-          //     onClose () {
-          //         setCookies('auth', true, 86400)
-          //     }
-          // })
-        })
-        .catch((res) => {});
-    }
     this.getAuth();
   },
   methods: {