diff --git a/index.html b/index.html
index fd0eaae..f3afe3a 100644
--- a/index.html
+++ b/index.html
@@ -51,13 +51,16 @@
Recompile
+
+ Clear Local Storage
+
mdi-cloud-search
mdi-forum
mdi-table
mdi-home
-
+
Recompiling...
diff --git a/preview.js b/preview.js
index 418b993..1bb45ea 100644
--- a/preview.js
+++ b/preview.js
@@ -161,6 +161,11 @@ const app = new Vue({
},
openCocosDocs() {
window.open('https://docs.cocos.com/');
+ },
+ clearLocalStorage() {
+ console.warn("[ccc-devtools] clearLocalStorage");
+ localStorage.clear();
+ window.location.reload();
}
}
});