Commit 588f043b by yancanhua

fix: 自测问题修改

1 parent 4bd49306
<template>
<div id="app">
<template v-if="showWindow">
<template v-show="showWindow">
<transition name="fade">
<keep-alive v-if="$route.meta.keepAlive">
<router-view></router-view>
......@@ -10,7 +10,7 @@
<router-view v-if="!$route.meta.keepAlive"></router-view>
</transition>
</template>
<template v-else>
<template v-show="!showWindow">
<div style="text-align: center;font-size: 14px;height: 48px;line-height: 48px;">{{windowTitle}}</div>
</template>
</div>
......@@ -29,7 +29,6 @@ export default {
immediate: true,
handler(newval) {
this.showWindow = newval
this.hideLoading()
}
}
},
......
......@@ -81,11 +81,7 @@ const actions = {
} else throw message
})
} else {
util.setLocalStorage('authorizeUrl', window.location.href);
let locationHref = window.location.href;
//把字符串 department, personage, company 替换为 authorize
locationHref = locationHref.replace(/(department|personage|company)/g, 'authorize');
window.location.href = `${loginUrl}?redirect_uri=${encodeURIComponent(locationHref)}&corpId=${corpId}&agentId=${agentId}&backLoginCode=BACKCODE`
window.location.href = `${loginUrl}?redirect_uri=${encodeURIComponent(window.location.href)}&corpId=${corpId}&agentId=${agentId}&backLoginCode=BACKCODE`
}
} catch (error) {
if (!error) error = '登录失败或无权限'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!