优化
This commit is contained in:
parent
ded68eb370
commit
e47568eae0
@ -38,8 +38,6 @@ function handleGetDingtalkCode () {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
console.log('store: ', store)
|
|
||||||
console.log('VueCookie: ', VueCookie)
|
|
||||||
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)
|
console.log('res: ', res)
|
||||||
|
|||||||
@ -421,7 +421,8 @@ export default {
|
|||||||
}))
|
}))
|
||||||
if (res.code !== 200) return
|
if (res.code !== 200) return
|
||||||
this.titleList = res.data
|
this.titleList = res.data
|
||||||
if (String(this.$route.query.step)) {
|
console.log('String(this.$route.query.step): ', String(this.$route.query.step))
|
||||||
|
if (String(this.$route.query.step) && String(this.$route.query.step) !== 'undefined') {
|
||||||
this.titleList = this.titleList.map(i => {
|
this.titleList = this.titleList.map(i => {
|
||||||
if (String(i.flowProcess) === String(this.$route.query.step)) {
|
if (String(i.flowProcess) === String(this.$route.query.step)) {
|
||||||
i.active = true
|
i.active = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user