Bladeren bron

fix(cert): 优化证书下载和自动签名功能

- 修改了 AutoSignConfirmView 中的页面跳转逻辑
- 更新了多个组件中的 keyGenerator 实现
-调整了部分 UI 样式,如文本大小和布局权重- 增加了对未下载证书的提示
- 修复了 SignManager 中的 stopSignAuto 方法
徐勤民 1 maand geleden
bovenliggende
commit
1e121177ae
3 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 2 2
      BuildProfile.ets
  2. 2 1
      src/main/ets/utils/ToolsHelper.ets
  3. 1 1
      src/main/ets/view/RefreshView.ets

+ 2 - 2
BuildProfile.ets

@@ -2,8 +2,8 @@
  * Use these variables when you tailor your ArkTS code. They must be of the const type.
  */
 export const HAR_VERSION = '1.0.5';
-export const BUILD_MODE_NAME = 'release';
-export const DEBUG = false;
+export const BUILD_MODE_NAME = 'debug';
+export const DEBUG = true;
 export const TARGET_NAME = 'default';
 
 /**

+ 2 - 1
src/main/ets/utils/ToolsHelper.ets

@@ -28,6 +28,7 @@ export interface ConfirmOptions {
 export interface ListOptions<T> {
   title?: string
   cancel?: Btn
+  autoCancel?: boolean
   index?: number
   alignment?: DialogAlignment
   values: Array<T>
@@ -273,7 +274,7 @@ export class ToolsHelper {
       const dialogTag = ToolsHelper.getUuid()
       promptAction.openCustomDialog({
         cornerRadius: 0,
-        autoCancel: false,
+        autoCancel: options.autoCancel ?? false,
         width: '100%',
         // height: options.values === undefined ? '20%' :
         //   options.values?.length < 8 ? `${options.values?.length / 16 * 100+10}%` : '50%',

+ 1 - 1
src/main/ets/view/RefreshView.ets

@@ -67,7 +67,7 @@ export struct RefreshView {
       }
     }
     .width('100%')
-    .height('100%')
+    .layoutWeight(1)
     .onStateChange((refreshStatus: RefreshStatus) => {
       // ToolsHelper.log('Refresh onStatueChange state is ' + refreshStatus)
     })