Commit 4e9eec0a by 李伟康

修复白屏

1 parent ad36d2af
...@@ -13,7 +13,8 @@ import { Notify } from 'vant' ...@@ -13,7 +13,8 @@ import { Notify } from 'vant'
const state = { const state = {
pageMeta: '', pageMeta: '',
keepAlives: [], keepAlives: [],
lastPath: '' lastPath: '',
showWindow: false
} }
import router from '@/router' import router from '@/router'
const mutations = { const mutations = {
...@@ -80,9 +81,9 @@ const actions = { ...@@ -80,9 +81,9 @@ const actions = {
.then(({ code, data }) => { .then(({ code, data }) => {
let url = `${redirectUrl.split('#')[0]}#/` let url = `${redirectUrl.split('#')[0]}#/`
let route = state.lastPath == 'home' ? '' : state.lastPath let route = state.lastPath == 'home' ? '' : state.lastPath
state.showWindow = true
if (code == '0') { if (code == '0') {
if (data.loginList.length) { if (data.loginList.length) {
state.showWindow = true
route = route.replace('.', '/') route = route.replace('.', '/')
if (data.loginList.length > 1) { if (data.loginList.length > 1) {
util.setLocalStorage('dj_scrm_loginToken', data.loginToken) util.setLocalStorage('dj_scrm_loginToken', data.loginToken)
...@@ -136,8 +137,8 @@ const actions = { ...@@ -136,8 +137,8 @@ const actions = {
}) })
return return
} else { } else {
appid = 'ww7ee69c648ae1b7e6' appid = 'wp-ZewEAAAhictTABWn9t2_N79ybqhCw'
// agentid = 1000003 agentid = 1000002
// appid = 'wwc1fefc2a3f70bd0b' // appid = 'wwc1fefc2a3f70bd0b'
// agentid = 1000002 // agentid = 1000002
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!