Commit 588f043b by yancanhua

fix: 自测问题修改

1 parent 4bd49306
<template> <template>
<div id="app"> <div id="app">
<template v-if="showWindow"> <template v-show="showWindow">
<transition name="fade"> <transition name="fade">
<keep-alive v-if="$route.meta.keepAlive"> <keep-alive v-if="$route.meta.keepAlive">
<router-view></router-view> <router-view></router-view>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<router-view v-if="!$route.meta.keepAlive"></router-view> <router-view v-if="!$route.meta.keepAlive"></router-view>
</transition> </transition>
</template> </template>
<template v-else> <template v-show="!showWindow">
<div style="text-align: center;font-size: 14px;height: 48px;line-height: 48px;">{{windowTitle}}</div> <div style="text-align: center;font-size: 14px;height: 48px;line-height: 48px;">{{windowTitle}}</div>
</template> </template>
</div> </div>
...@@ -29,7 +29,6 @@ export default { ...@@ -29,7 +29,6 @@ export default {
immediate: true, immediate: true,
handler(newval) { handler(newval) {
this.showWindow = newval this.showWindow = newval
this.hideLoading()
} }
} }
}, },
......
...@@ -81,11 +81,7 @@ const actions = { ...@@ -81,11 +81,7 @@ const actions = {
} else throw message } else throw message
}) })
} else { } else {
util.setLocalStorage('authorizeUrl', window.location.href); window.location.href = `${loginUrl}?redirect_uri=${encodeURIComponent(window.location.href)}&corpId=${corpId}&agentId=${agentId}&backLoginCode=BACKCODE`
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`
} }
} catch (error) { } catch (error) {
if (!error) 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!