mirror of
https://github.com/potato47/ccc-devtools.git
synced 2025-04-19 13:29:12 +00:00
[A] clear local storage button
This commit is contained in:
parent
9589907747
commit
0585af3380
@ -51,6 +51,9 @@
|
||||
<div class="item">
|
||||
<v-btn id="btn-recompile" small height="25"><span style="color: #aaa;">Recompile</span></v-btn>
|
||||
</div>
|
||||
<div class="item">
|
||||
<v-btn @click="clearLocalStorage" small height="25"><span style="color: #aaa;">Clear Local Storage</span></v-btn>
|
||||
</div>
|
||||
<v-icon @click="openCocosDocs" small>mdi-cloud-search</v-icon>
|
||||
<v-icon @click="openCocosForum" small>mdi-forum</v-icon>
|
||||
<v-icon @click="openCacheDialog" small>mdi-table</v-icon>
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user