milestone

This commit is contained in:
Jesse-Ma
2023-04-06 13:40:18 +08:00
parent a9e7f88412
commit 612c9b2164
22 changed files with 1595 additions and 1378 deletions

View File

@@ -217,6 +217,7 @@ export default {
lock: 0,
locking: 0,
commited: 0,
deleted: 0,
serverTime: '',
initTime: '',
},
@@ -518,6 +519,7 @@ export default {
},
dropNote() {
this.model.deleting = true;
this.state.deleted = 1;
storage.local.delete(this.secret.storeKey);
storage.session.setText(this.secret.storeKey + "_delete", 1);
location.reload();
@@ -602,7 +604,9 @@ export default {
});
},
beforeunloadHandler() {
setStoreText(this.noteForm, this.state, this.secret);
if(this.state.deleted==0){
setStoreText(this.noteForm, this.state, this.secret);
}
},
}
}