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