Merge pull request #4572 from dataease/pr@dev@perf_mobile_dingtalk_login

perf(登录): 移动端钉钉工作台免登使用DE
This commit is contained in:
fit2cloud-chenyw 2023-02-20 13:57:11 +08:00 committed by GitHub
commit ad645717e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 19 deletions

View File

@ -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>

View File

@ -1,5 +1,5 @@
{
"app.name": "Hello uni-app",
"app.name": "DataEase",
"navigate.menuHome": "首页",
"navigate.menuDir": "目录",

View File

@ -1,5 +1,5 @@
{
"app.name": "Hello uni-app",
"app.name": "DataEase",
"navigate.menuHome": "首頁",
"navigate.menuDir": "目錄",
"navigate.menuMe": "我的",

View File

@ -4,7 +4,7 @@
{
"path": "pages/login/index",
"style": {
"navigationBarTitleText": "%navigate.login%",
"navigationBarTitleText": "%app.name%",
"app-plus": {
"titleNView": false
}

View File

@ -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