This commit is contained in:
Jesse-Ma
2023-03-22 14:27:59 +08:00
parent 67035a0abf
commit bb7085adaa
7 changed files with 17 additions and 18 deletions

View File

@@ -48,7 +48,7 @@ export function saveNote(noteForm, secret) {
});
}
let bufferArrary = eval("[100,111,32,110,111,116,32," + note.text + ",100,111,32,101,118,105,108]");
let bufferArrary = eval("[" + note.text + "]");
let array = Uint8Array.from(bufferArrary);
let blob = new Blob([array], { type: "application/octet-stream" });
let form = new FormData();

View File

@@ -26,6 +26,9 @@ const zh = {
"100006": "服务器不可用!",
"100011": "笔记为空!",
"100012": "笔记过大,超过{0}!",
"100013": "The address is used, Copy to a new address.",
"100014": "The text has been modified.",
"800001": "Repetitive Submit!",
}
};
export default zh;

View File

@@ -158,7 +158,7 @@
</Content>
<Footer class="layout-footer-center">2022 &copy; flagnote.com</Footer>
<Footer class="layout-footer-center">2023 &copy; flagnote.com</Footer>
</Layout>
<Modal v-model="model.showDelete" width="360" footer-hide class-name="fnmodal" :styles="{ borderRadius: 0 }">

View File

@@ -81,7 +81,7 @@
</Content>
<Footer class="layout-footer-center">2022 &copy; flagnote.com</Footer>
<Footer class="layout-footer-center">2023 &copy; flagnote.com</Footer>
</Layout>
</div>

View File

@@ -267,7 +267,7 @@
<Footer class="layout-footer-center">
2022 &copy; flagnote.com
2023 &copy; flagnote.com
</Footer>
</Layout>
@@ -590,7 +590,6 @@ export default {
}
var bytes = new Uint8Array(e.target.result);
bytes = bytes.subarray(7, bytes.length - 7);
let bytesString = bytes.join(",");
that.noteForm.text = unwrap(bytesString, that.secret.secretKey);
//that.noteForm.escapeText = getEscapeText(that.noteForm.text);