forked from github/dataease
Merge pull request #4572 from dataease/pr@dev@perf_mobile_dingtalk_login
perf(登录): 移动端钉钉工作台免登使用DE
This commit is contained in:
commit
ad645717e5
@ -273,23 +273,13 @@
|
||||
<cache
|
||||
name="sys_token_store"
|
||||
eternal="true"
|
||||
maxElementsInMemory="100"
|
||||
maxElementsOnDisk="3000"
|
||||
maxElementsInMemory="1"
|
||||
maxElementsOnDisk="0"
|
||||
overflowToDisk="true"
|
||||
diskPersistent="false"
|
||||
diskPersistent="true"
|
||||
/>
|
||||
|
||||
<cache
|
||||
name="sys_token_store_delay"
|
||||
eternal="false"
|
||||
maxElementsInMemory="100"
|
||||
maxElementsOnDisk="3000"
|
||||
overflowToDisk="true"
|
||||
diskPersistent="false"
|
||||
timeToIdleSeconds="3"
|
||||
timeToLiveSeconds="5"
|
||||
memoryStoreEvictionPolicy="LRU"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</ehcache>
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"app.name": "Hello uni-app",
|
||||
"app.name": "DataEase",
|
||||
|
||||
"navigate.menuHome": "首页",
|
||||
"navigate.menuDir": "目录",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"app.name": "Hello uni-app",
|
||||
"app.name": "DataEase",
|
||||
"navigate.menuHome": "首頁",
|
||||
"navigate.menuDir": "目錄",
|
||||
"navigate.menuMe": "我的",
|
||||
|
@ -4,7 +4,7 @@
|
||||
{
|
||||
"path": "pages/login/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "%navigate.login%",
|
||||
"navigationBarTitleText": "%app.name%",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
|
@ -69,7 +69,7 @@
|
||||
title: this.$t('commons.loading')
|
||||
});
|
||||
this.loadUiInfo()
|
||||
this.loadPublicKey()
|
||||
this.loadPublicKey()
|
||||
if (!this.autoLogin() && getToken() && getUserInfo()) {
|
||||
this.toMain()
|
||||
}
|
||||
@ -154,8 +154,15 @@
|
||||
const url = window.location.href
|
||||
const param = getUrlParams(url)
|
||||
if (param?.detoken) {
|
||||
if(param.detoken.endsWith('#/'))
|
||||
param.detoken = param.detoken.substr(0, param.detoken.length - 2)
|
||||
setToken(param.detoken)
|
||||
this.toMain()
|
||||
getInfo().then(res => {
|
||||
setUserInfo(res.data)
|
||||
const redirect = window.location.href.split('?')[0]
|
||||
|
||||
window.location.href = redirect
|
||||
})
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user