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

This commit is contained in:
From-wh 2022-09-29 12:19:06 +08:00
parent faf6bdbf89
commit f306cab804
2 changed files with 0 additions and 31 deletions

View File

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

View File

@ -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: {