优化
This commit is contained in:
parent
1223dfcda5
commit
e40534e1fc
@ -3,7 +3,7 @@ import { apiUserInfo } from '@/api/login'
|
||||
const user = {
|
||||
state: {
|
||||
deplist: [],
|
||||
info: JSON.parse(localStorage.getItem('info')) || {},
|
||||
info: {},
|
||||
auth: JSON.parse(localStorage.getItem('auth')) || {}
|
||||
|
||||
},
|
||||
|
||||
@ -40,6 +40,7 @@ function handleGetDingtalkCode () {
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
if (!store.getters.userInfo.userNo && !dd.other) {
|
||||
let res = await handleGetDingtalkCode()
|
||||
console.log('res: ', res)
|
||||
if (res === 1) {
|
||||
let res1 = await store.dispatch('GET_USERINFO')
|
||||
if (res1 === 1) next()
|
||||
|
||||
@ -180,12 +180,6 @@ export default {
|
||||
// 等级分布数据报表持有类
|
||||
levelOption: {
|
||||
color: ['#409EFF'],
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user