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
shishuangxi
2024-04-11 19:32:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d3d1530571751adb5dde8efe6ee49437388f756c
d3d15305
1 parent
6170da0a
降级map api等级
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 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 @
d3d1530
...
...
@@ -6,7 +6,7 @@ import { BusinessError } from '@ohos.base';
import router from '@ohos.router';
import { WDRouterPage, WDRouterRule } from 'wdRouter';
import { Params } from 'wdBean';
import { common } from '@kit.AbilityKit';
//
import { common } from '@kit.AbilityKit';
import fs from '@ohos.file.fs';
import { CustomCacheDialog } from './CustomCacheDialog';
import MineSettingDatasModel from '../../model/MineSettingDatasModel';
...
...
@@ -279,18 +279,18 @@ export struct MineSettingComponent {
//删除缓存
deleteCache() {
let context = getContext(this) as common.UIAbilityContext
let application = context.getApplicationContext();
let appPath = application.cacheDir
Logger.debug("MineSettingComponent", appPath)
fs.rmdir(appPath).then(() => {
this.getCacheSize()
})
let path = context.cacheDir
Logger.debug("MineSettingComponent", path)
fs.rmdir(path).then(() => {
this.getCacheSize()
})
// let context = getContext(this) as common.UIAbilityContext
// let application = context.getApplicationContext();
// let appPath = application.cacheDir
// Logger.debug("MineSettingComponent", appPath)
// fs.rmdir(appPath).then(() => {
// this.getCacheSize()
// })
// let path = context.cacheDir
// Logger.debug("MineSettingComponent", path)
// fs.rmdir(path).then(() => {
// this.getCacheSize()
// })
}
getCacheSize() {
...
...
Please
register
or
login
to post a comment