File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11<template >
22 <login-layout v-if =" !loading" v-loading =" loading" >
3- <LoginContainer :subTitle =" theme.themeInfo?.slogan || $t('theme.defaultSlogan') " >
3+ <LoginContainer :subTitle =" newDefaultSlogan " >
44 <h2 class =" mb-24" v-if =" !showQrCodeTab" >{{ loginMode || $t('views.login.title') }}</h2 >
55 <div v-if =" !showQrCodeTab" >
66 <el-form
125125 </login-layout >
126126</template >
127127<script setup lang="ts">
128- import {onMounted , ref , onBeforeMount } from ' vue'
128+ import {onMounted , ref , onBeforeMount , computed } from ' vue'
129129import {useRoute , useRouter } from ' vue-router'
130130import type {FormInstance , FormRules } from ' element-plus'
131131import type {LoginRequest } from ' @/api/type/login'
@@ -227,7 +227,14 @@ function uuidv4() {
227227 return v .toString (16 )
228228 })
229229}
230-
230+ const newDefaultSlogan= computed (()=> {
231+ const default_login= ' 强大易用的企业级智能体平台'
232+ if (! theme .themeInfo ?.slogan || default_login == theme .themeInfo ?.slogan ){
233+ return t (' theme.defaultSlogan' )
234+ }else {
235+ return theme .themeInfo ?.slogan
236+ }
237+ })
231238function redirectAuth(authType : string ) {
232239 if (authType === ' LDAP' || authType === ' ' ) {
233240 return
You can’t perform that action at this time.
0 commit comments