Ver Fonte

😎修复白屏问题

zuohuaijun há 2 anos atrás
pai
commit
b8878f6bf6

+ 40 - 0
Web/src/api-services/models/sms-verify-code-input.ts

@@ -0,0 +1,40 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Admin.NET 通用权限开发平台
+ * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
+ *
+ * OpenAPI spec version: 1.0.0
+ * 
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+ /**
+ * 
+ *
+ * @export
+ * @interface SmsVerifyCodeInput
+ */
+export interface SmsVerifyCodeInput {
+
+    /**
+     * 手机号码
+     *
+     * @type {string}
+     * @memberof SmsVerifyCodeInput
+     * @example admin
+     */
+    phone: string;
+
+    /**
+     * 验证码
+     *
+     * @type {string}
+     * @memberof SmsVerifyCodeInput
+     * @example 123456
+     */
+    code: string;
+}

+ 3 - 1
Web/src/stores/keepAliveNames.ts

@@ -22,7 +22,9 @@ export const useKeepALiveNames = defineStore('keepALiveNames', {
 		},
 		async delCachedView(view: any) {
 			const index = this.cachedViews.indexOf(view.name);
-			index > -1 && this.cachedViews.splice(index, 1);
+			setTimeout(() => {
+				index > -1 && this.cachedViews.splice(index, 1);
+			}, 20)
 		},
 		async delOthersCachedViews(view: any) {
 			if (view.meta.isKeepAlive) this.cachedViews = [view.name];