diff --git a/pages/API/storage/storage.uvue b/pages/API/storage/storage.uvue index 7b52e17a1a85b0e0c91327f4c10cb385598694e6..161a99090884140e1eafcce512324c34279c4701 100644 --- a/pages/API/storage/storage.uvue +++ b/pages/API/storage/storage.uvue @@ -239,12 +239,21 @@ clearStorage: function () { this.key = '' this.data = '' - uni.clearStorage() - uni.showModal({ - title: '清除数据成功', - content: ' ', - showCancel: false + uni.clearStorage({ + success:function(res){ + uni.showModal({ + title: '清除数据成功', + showCancel: false + }) + }, + fail:function(res){ + uni.showModal({ + title: '清除数据失败', + showCancel: false + }) + }, }) + }, clearStorageSync: function () { this.key = ''