Skip to content

Commit

Permalink
add 清除缓存数据 action
Browse files Browse the repository at this point in the history
myvin committed Jan 16, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 63496fc commit 6de4a5f
Showing 2 changed files with 15 additions and 7 deletions.
9 changes: 9 additions & 0 deletions pages/setting/setting.js
Original file line number Diff line number Diff line change
@@ -47,6 +47,15 @@ Page({
},
})
},
clearStorage () {
wx.clearStorage({
success () {
wx.switchTab({
url: '/pages/feidian/feidian',
})
}
})
},
signout () {
wx.showModal({
title: '提示',
13 changes: 6 additions & 7 deletions pages/setting/setting.wxml
Original file line number Diff line number Diff line change
@@ -20,19 +20,18 @@
</view> -->
</view>

<!-- <view class='card items'>
<view class='item'>
<view class='card items'>
<view class='item' catchtap='clearStorage'>
<view class='title'>
<view>清除缓存</view>
<view>清除缓存数据</view>
</view>
<view class='count'>0B</view>
</view>
<view class='item'>
<!-- <view class='item'>
<view class='title'>
<view>自动检查粘贴板快速分享</view>
</view>
</view>
</view> -->
</view> -->
</view>

<view class='card items'>
<navigator url='/pages/about/about'>

0 comments on commit 6de4a5f

Please sign in to comment.