From 6d450987ba5d64392c3586efe03610010e3ecb52 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Mon, 30 Dec 2024 17:55:28 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E6=B8=85=E9=99=A4=E7=BC=93=E5=AD=98=EF=BC=88=E9=9A=90?=
=?UTF-8?q?=E8=97=8F=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
me/setting/index.vue | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/me/setting/index.vue b/me/setting/index.vue
index d6d8a15..cf470e9 100644
--- a/me/setting/index.vue
+++ b/me/setting/index.vue
@@ -25,6 +25,10 @@
注销账号
+
退出登录
@@ -39,6 +43,7 @@
data() {
return {
version: null,
+ cacheSize:'0M'
}
},
onLoad() {
@@ -54,8 +59,30 @@
// console.log(widgetInfo)
// this.version = widgetInfo.version
// })
+ const info= uni.getStorageInfoSync()
+ console.log(info);
+ const size=(info.currentSize/1024).toFixed(2)
+ this.cacheSize=size<1?(info.currentSize+'kb'):(size) +'M'
+ },
+ onShow() {
},
methods: {
+ clearCache(){
+ uni.showModal({
+ title:'提示',
+ content:`是否清除全部缓存
+ `,
+ success(res) {
+ if(res.confirm){
+ cacheClearAll()
+ const info= uni.getStorageInfoSync()
+ info.keys.map(v=>{
+ console.log(v);
+ })
+ }
+ }
+ })
+ },
goNav(e) {
uni.navigateTo({
url: e