mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
【模版目录】移除无用接口
This commit is contained in:
parent
faf6bdbf89
commit
f306cab804
@ -50,9 +50,3 @@ export function rankApi() {
|
||||
});
|
||||
}
|
||||
|
||||
export function checkAuth() {
|
||||
return request({
|
||||
url: 'check_auth',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user