forked from github/dataease
feat(X-Pack): 第三方平台移动端免登录进入
This commit is contained in:
parent
b31fcbbff6
commit
ef5e9206d5
@ -7,7 +7,7 @@ import { usePermissionStoreWithOut, pathValid, getFirstAuthMenu } from '@/store/
|
|||||||
import { usePageLoading } from '@/hooks/web/usePageLoading'
|
import { usePageLoading } from '@/hooks/web/usePageLoading'
|
||||||
import { getRoleRouters } from '@/api/common'
|
import { getRoleRouters } from '@/api/common'
|
||||||
import { useCache } from '@/hooks/web/useCache'
|
import { useCache } from '@/hooks/web/useCache'
|
||||||
import { isMobile, checkPlatform } from '@/utils/utils'
|
import { isMobile, checkPlatform, isLarkPlatform, isPlatformClient } from '@/utils/utils'
|
||||||
import { interactiveStoreWithOut } from '@/store/modules/interactive'
|
import { interactiveStoreWithOut } from '@/store/modules/interactive'
|
||||||
import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
|
import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
|
||||||
import { useEmbedded } from '@/store/modules/embedded'
|
import { useEmbedded } from '@/store/modules/embedded'
|
||||||
@ -34,7 +34,7 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
loadDone()
|
loadDone()
|
||||||
if (to.name === 'link') {
|
if (to.name === 'link') {
|
||||||
window.location.href = window.origin + '/mobile.html#' + to.path
|
window.location.href = window.origin + '/mobile.html#' + to.path
|
||||||
} else {
|
} else if (!isPlatformClient() && !isLarkPlatform()) {
|
||||||
window.location.href = window.origin + '/mobile.html#/index'
|
window.location.href = window.origin + '/mobile.html#/index'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,13 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div class="login-form-content" v-loading="loading">
|
<div class="login-form-content" v-loading="loading">
|
||||||
<div class="login-form-center">
|
<div class="login-form-center">
|
||||||
<el-form ref="formRef" :model="state.loginForm" :rules="rules" size="default">
|
<el-form
|
||||||
|
ref="formRef"
|
||||||
|
:model="state.loginForm"
|
||||||
|
:rules="rules"
|
||||||
|
size="default"
|
||||||
|
:disabled="preheat"
|
||||||
|
>
|
||||||
<div class="login-logo">
|
<div class="login-logo">
|
||||||
<Icon
|
<Icon
|
||||||
v-if="!loginLogoUrl && axiosFinished"
|
v-if="!loginLogoUrl && axiosFinished"
|
||||||
|
Loading…
Reference in New Issue
Block a user