Просмотр исходного кода

😁修复移动端小屏登录时验证码显示问题及升级依赖

zuohuaijun 2 лет назад
Родитель
Сommit
a05b18fcb9

+ 1 - 1
Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj

@@ -35,7 +35,7 @@
     <PackageReference Include="NEST" Version="7.17.5" />
     <PackageReference Include="NewLife.Redis" Version="5.5.2023.1001" />
     <PackageReference Include="OnceMi.AspNetCore.OSS" Version="1.1.9" />
-    <PackageReference Include="SKIT.FlurlHttpClient.Wechat.Api" Version="2.33.0" />
+    <PackageReference Include="SKIT.FlurlHttpClient.Wechat.Api" Version="2.34.0" />
     <PackageReference Include="SKIT.FlurlHttpClient.Wechat.TenpayV3" Version="2.20.0" />
     <PackageReference Include="SqlSugarCore" Version="5.1.4.110" />
     <PackageReference Include="System.Linq.Dynamic.Core" Version="1.3.5" />

+ 1 - 1
Web/src/theme/media/login.scss

@@ -39,7 +39,7 @@
 						display: flex !important;
 					}
 					.login-right-warp-main-title {
-						font-size: 20px !important;
+						font-size: 25px !important;
 					}
 				}
 				.login-right-warp-one {

+ 3 - 1
Web/src/views/login/component/account.vue

@@ -21,7 +21,7 @@
 				</template>
 			</el-input>
 		</el-form-item>
-		<el-form-item class="login-animation3" prop="captcha" v-show="state.captchaEnabled">
+		<el-form-item class="login-animation3" prop="captcha" v-if="state.captchaEnabled">
 			<el-col :span="15">
 				<el-input
 					ref="codeRef"
@@ -138,6 +138,8 @@ onMounted(async () => {
 });
 // 获取验证码
 const getCaptcha = async () => {
+	if (!state.captchaEnabled) return;
+
 	state.ruleForm.code = '';
 	var res = await getAPI(SysAuthApi).apiSysAuthCaptchaGet();
 	state.captchaImage = 'data:text/html;base64,' + res.data.result?.img;