fix(frontend): load complete TDesign styles

This commit is contained in:
jacentsao
2026-07-20 16:02:46 +08:00
committed by lyingbug
parent d1cab68e3d
commit c387f09add
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import router from "./router";
import "./assets/fonts.css";
import TDesign from "tdesign-vue-next";
// 引入组件库的少量全局样式变量
import "tdesign-vue-next/es/style/index.css";
import "tdesign-vue-next/dist/tdesign.css";
import "@/assets/theme/theme.css";
import "@/assets/dropdown-menu.less";
import "@/components/css/chat-hljs-dark.less";
+3 -2
View File
@@ -184,7 +184,8 @@
</div>
<div class="form-content">
<t-form ref="formRef" :data="formData" :rules="formRules" @submit="handleLogin" layout="vertical">
<t-form ref="formRef" :data="formData" :rules="formRules" @submit="handleLogin" layout="vertical"
label-align="top">
<t-form-item :label="$t('auth.email')" name="email">
<t-input v-model="formData.email" :placeholder="$t('auth.emailPlaceholder')" type="text"
autocomplete="email" size="large" :disabled="loading" />
@@ -267,7 +268,7 @@
<div class="form-content">
<t-form ref="registerFormRef" :data="registerData" :rules="registerRules" @submit="handleRegister"
layout="vertical">
layout="vertical" label-align="top">
<t-form-item :label="$t('auth.username')" name="username">
<t-input v-model="registerData.username" :placeholder="$t('auth.usernamePlaceholder')" size="large"
:disabled="loading" />