Skip to content

Commit 0aa3e9f

Browse files
committed
fix: Slogan
1 parent f385bb3 commit 0aa3e9f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

ui/src/views/login/index.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -125,7 +125,7 @@
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'
129129
import {useRoute, useRouter} from 'vue-router'
130130
import type {FormInstance, FormRules} from 'element-plus'
131131
import 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+
})
231238
function redirectAuth(authType: string) {
232239
if (authType === 'LDAP' || authType === '') {
233240
return

0 commit comments

Comments
 (0)