This commit is contained in:
熊成强 2020-11-18 15:38:34 +08:00
parent 1223dfcda5
commit e40534e1fc
3 changed files with 2 additions and 7 deletions

View File

@ -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')) || {}
}, },

View File

@ -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()

View File

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