Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yangchenggong1_wd
2024-05-11 18:25:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce19283c9a9875ab611675da221383c3d3e10589
ce19283c
1 parent
6b5d3e6e
fix:bug[17073] UI还原问题--设置中的清理缓存弹窗鸿蒙与安卓不一致
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/setting/MineSettingComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/setting/MineSettingComponent.ets
View file @
ce19283
...
...
@@ -14,6 +14,7 @@ import { MineMainSettingFunctionItem } from '../../viewmodel/MineMainSettingFunc
import common from '@ohos.app.ability.common';
import dataPreferences from '@ohos.data.preferences';
import { TitleBackComponent } from './TitleBackComponent';
import { MyCustomDialog } from '../reusable/MyCustomDialog';
@Component
export struct MineSettingComponent {
...
...
@@ -23,17 +24,22 @@ export struct MineSettingComponent {
@State cacheSize: number = 0
@State accountState:boolean=false
preferences: dataPreferences.Preferences | null = null;
dialogController: CustomDialogController = new CustomDialogController({
builder:
CustomCache
Dialog({
builder:
MyCustom
Dialog({
cancel: () => {
},
confirm: () => {
this.deleteCache()
}
},
title: "清理缓存",
tipValue:"是否确认清理此App的缓存",
tipShow:true,
leftTextColor:$r('app.color.color_648DF2')
}),
customStyle: true,
alignment: DialogAlignment.Center
autoCancel: true,
alignment: DialogAlignment.Center,
customStyle: true
})
aboutToAppear() {
// 获取设置页面数据
...
...
Please
register
or
login
to post a comment