优化
This commit is contained in:
parent
e112f6891f
commit
4a0cf97b22
10
src/App.vue
10
src/App.vue
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<!-- <div v-if="!dd.pc && !dd.other" class="pc commonFont">
|
||||
<div v-if="!dd.pc && !dd.other" class="pc commonFont">
|
||||
请移步PC端操作
|
||||
</div> -->
|
||||
</div>
|
||||
<router-view class="main"/>
|
||||
</div>
|
||||
</template>
|
||||
@ -19,7 +19,10 @@ export default {
|
||||
name: 'App',
|
||||
data () {
|
||||
return {
|
||||
dd,
|
||||
dd: {
|
||||
pc: true,
|
||||
other: true
|
||||
},
|
||||
active: true,
|
||||
fullPage: true,
|
||||
dingCode: '',
|
||||
@ -47,6 +50,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
this.dd = dd
|
||||
},
|
||||
methods: {
|
||||
onCancel () {
|
||||
|
||||
@ -45,7 +45,6 @@ router.beforeEach(async (to, from, next) => {
|
||||
if (res === 1) {
|
||||
console.log('res: ', res)
|
||||
let res1 = await store.dispatch('GET_USERINFO')
|
||||
await store.dispatch('GET_DEPLIST')
|
||||
console.log('res1: ', res1)
|
||||
if (res1 === 1) next()
|
||||
} else {
|
||||
@ -57,5 +56,6 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
})
|
||||
|
||||
router.afterEach(() => {
|
||||
router.afterEach(async () => {
|
||||
await store.dispatch('GET_DEPLIST')
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user