Commit 84da4b86 by liang ce

测试

parent 845fafda
...@@ -13,8 +13,6 @@ const config = { ...@@ -13,8 +13,6 @@ const config = {
resolve(res.data.data) resolve(res.data.data)
}) })
}).then((res) => { }).then((res) => {
console.log(res)
console.log(location.href.replace(window.location.hash, ''))
let senddate = qs.stringify({ let senddate = qs.stringify({
version: MINGPAY_CONSTANT.MINGPAY_CONSTANT_VERSION, version: MINGPAY_CONSTANT.MINGPAY_CONSTANT_VERSION,
url: location.href.replace(window.location.hash, ''), url: location.href.replace(window.location.hash, ''),
...@@ -38,6 +36,7 @@ const config = { ...@@ -38,6 +36,7 @@ const config = {
'biz.contact.complexPicker' 'biz.contact.complexPicker'
] // 必填,需要使用的jsapi列表,注意:不要带dd。 ] // 必填,需要使用的jsapi列表,注意:不要带dd。
}) })
sessionStorage.setItem('isFirstAction', true)
dd.error(function (error) { dd.error(function (error) {
console.log('dd error: ' + JSON.stringify(error)) console.log('dd error: ' + JSON.stringify(error))
return 'no' return 'no'
......
...@@ -39,7 +39,7 @@ router.beforeEach(function (to, from, next) { ...@@ -39,7 +39,7 @@ router.beforeEach(function (to, from, next) {
if (to.name === 'noPermission' || to.name === 'configError') { if (to.name === 'noPermission' || to.name === 'configError') {
next() next()
} else { } else {
if (localStorage.getItem('userId')) { if (localStorage.getItem('isFirstAction')) {
next() next()
} else { } else {
localStorage.setItem('orgId', to.redirectedFrom.substr(1)) localStorage.setItem('orgId', to.redirectedFrom.substr(1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment