File tree 7 files changed +19
-9
lines changed
workflow/nodes/reranker-node
7 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 55
55
/>
56
56
</g >
57
57
</svg >
58
- <img v-else src =" @/assets/logo/MaxKB-logo.svg" :height =" height" />
58
+ <img src =" @/assets/logo/MaxKB-logo.svg" :height =" height" />
59
59
</template >
60
60
</template >
61
61
<script setup lang="ts">
@@ -75,7 +75,7 @@ const isDefaultTheme = computed(() => {
75
75
})
76
76
77
77
const fileURL = computed (() => {
78
- if (user .themeInfo ?. loginLogo ) {
78
+ if (user .themeInfo ) {
79
79
if (typeof user .themeInfo ?.loginLogo === ' string' ) {
80
80
return user .themeInfo ?.loginLogo
81
81
} else {
Original file line number Diff line number Diff line change 1
1
import { hasPermission } from '@/utils/permission/index'
2
+ import NProgress from 'nprogress'
2
3
import {
3
4
createRouter ,
4
5
createWebHistory ,
@@ -9,6 +10,7 @@ import {
9
10
} from 'vue-router'
10
11
import useStore from '@/stores'
11
12
import { routes } from '@/router/routes'
13
+ NProgress . configure ( { showSpinner : false , speed : 500 , minimum : 0.3 } )
12
14
const router = createRouter ( {
13
15
history : createWebHistory ( import . meta. env . BASE_URL ) ,
14
16
routes : routes
@@ -17,6 +19,7 @@ const router = createRouter({
17
19
// 路由前置拦截器
18
20
router . beforeEach (
19
21
async ( to : RouteLocationNormalized , from : RouteLocationNormalized , next : NavigationGuardNext ) => {
22
+ NProgress . start ( )
20
23
if ( to . name === '404' ) {
21
24
next ( )
22
25
return
@@ -48,6 +51,9 @@ router.beforeEach(
48
51
}
49
52
}
50
53
)
54
+ router . afterEach ( ( ) => {
55
+ NProgress . done ( )
56
+ } )
51
57
52
58
export const getChildRouteListByPathAndName = ( path : any , name ?: RouteRecordName | any ) => {
53
59
return getChildRouteList ( routes , path , name )
Original file line number Diff line number Diff line change 11
11
margin : 0 ;
12
12
padding : 0 ;
13
13
}
14
-
14
+ [v-cloak ] {
15
+ display : none !important ;
16
+ }
15
17
html {
16
18
height : 100% ;
17
19
box-sizing : border-box ;
Original file line number Diff line number Diff line change 96
96
<el-input-number
97
97
v-model =" form.dataset_setting.top_n"
98
98
:min =" 1"
99
- :max =" 100 "
99
+ :max =" 10000 "
100
100
:value-on-clear =" 1"
101
101
controls-position =" right"
102
102
class =" w-full"
Original file line number Diff line number Diff line change 170
170
<el-input-number
171
171
v-model =" cloneForm.top_number"
172
172
:min =" 1"
173
- :max =" 100 "
173
+ :max =" 10000 "
174
174
controls-position =" right"
175
175
class =" w-full"
176
176
/>
Original file line number Diff line number Diff line change 1
1
<template >
2
- <login-layout v-if =" user.isEnterprise() ? user.themeInfo : true " v-loading =" loading" >
2
+ <login-layout v-if =" !loading " v-loading =" loading" >
3
3
<LoginContainer :subTitle =" user.themeInfo?.slogan || $t('views.system.theme.defaultSlogan')" >
4
4
<h2 class =" mb-24" v-if =" !showQrCodeTab" >{{ loginMode || $t('views.login.title') }}</h2 >
5
5
<div v-if =" !showQrCodeTab" >
@@ -225,10 +225,10 @@ const login = () => {
225
225
})
226
226
}
227
227
228
- onMounted (() => {
228
+ onBeforeMount (() => {
229
+ loading .value = true
229
230
user .asyncGetProfile ().then ((res ) => {
230
231
if (user .isEnterprise ()) {
231
- loading .value = true
232
232
user
233
233
.getAuthType ()
234
234
.then ((res ) => {
@@ -261,6 +261,8 @@ onMounted(() => {
261
261
}
262
262
})
263
263
.finally (() => (loading .value = false ))
264
+ } else {
265
+ loading .value = false
264
266
}
265
267
})
266
268
})
Original file line number Diff line number Diff line change 49
49
<el-input-number
50
50
v-model =" form.top_n"
51
51
:min =" 1"
52
- :max =" 100 "
52
+ :max =" 10000 "
53
53
:value-on-clear =" 1"
54
54
controls-position =" right"
55
55
class =" w-full"
You can’t perform that action at this time.
0 commit comments