导出
@@ -293,5 +293,5 @@ onMounted(() => {
保存
-
+
diff --git a/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue b/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue
index 9ee439b59eb..a033a7a3b03 100644
--- a/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue
+++ b/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue
@@ -28,10 +28,15 @@ const authenticationTabs: AuthenticationTab[] = [
-
+
-
-
+
+
@@ -42,4 +47,15 @@ const authenticationTabs: AuthenticationTab[] = [
-
+
diff --git a/ui/src/views/system/settings/authentication/components/LoginSetting.vue b/ui/src/views/system/settings/authentication/components/LoginSetting.vue
index abaf8690496..632ae90d998 100644
--- a/ui/src/views/system/settings/authentication/components/LoginSetting.vue
+++ b/ui/src/views/system/settings/authentication/components/LoginSetting.vue
@@ -50,6 +50,11 @@ function handleLoginMethodsChange(loginMethods: string[]) {
}
}
+/* 登录次数不为0*/
+function normalizeNonZeroNumber(value: number | undefined) {
+ return value === undefined || value === 0 ? 1 : value
+}
+
// 角色与工作空间选项
const roleSettingOptionsLoading = ref(false)
const roleOptions = ref
([])
@@ -173,78 +178,97 @@ onMounted(() => {
-
- 登录失败
-
- 登录失败
- (值为-1时,不显示验证码)
-
-
- 登录失败
-
- 次,
- 锁定账号
-
- 分钟
-
+
+
+ 登录失败
+
+ 登录失败
+ (值为-1时,不显示验证码)
+
+
+ 登录失败
+
+ 次,
+ 锁定账号
+
+ 分钟
+
+
- 第三方用户默认角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
+ 第三方用户默认角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
diff --git a/ui/vite.config.ts b/ui/vite.config.ts
index 63c8af269fe..2c6949be78f 100644
--- a/ui/vite.config.ts
+++ b/ui/vite.config.ts
@@ -10,7 +10,7 @@ import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
const envDir = './env'
-const defaultBackendTarget = 'https://mk-ee.fit2cloud.cn/'
+const defaultBackendTarget = 'http://localhost:3000'
const projectRoot = fileURLToPath(new URL('.', import.meta.url))
const renameHtmlPlugin = (outDir: string, entry: string) => {