From f306cab804c83d4ec25012fcdcd7d6e40ea42100 Mon Sep 17 00:00:00 2001 From: From-wh Date: Thu, 29 Sep 2022 12:19:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A8=A1=E7=89=88=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/api/index.js | 6 ------ template/admin/src/pages/index/index.vue | 25 ------------------------ 2 files changed, 31 deletions(-) diff --git a/template/admin/src/api/index.js b/template/admin/src/api/index.js index e3e8c5076..883494a4f 100644 --- a/template/admin/src/api/index.js +++ b/template/admin/src/api/index.js @@ -50,9 +50,3 @@ export function rankApi() { }); } -export function checkAuth() { - return request({ - url: 'check_auth', - method: 'get', - }); -} diff --git a/template/admin/src/pages/index/index.vue b/template/admin/src/pages/index/index.vue index 677a4bb55..c886cd0f1 100644 --- a/template/admin/src/pages/index/index.vue +++ b/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: {