diff --git a/public/index.html b/public/index.html
index 497f4d4..d0f4ccd 100644
--- a/public/index.html
+++ b/public/index.html
@@ -44,7 +44,9 @@
type="text/javascript">
-
+
diff --git a/src/api/note.js b/src/api/note.js
index e046c94..b05f6b0 100644
--- a/src/api/note.js
+++ b/src/api/note.js
@@ -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();
diff --git a/src/i18n/config/zh.js b/src/i18n/config/zh.js
index b838154..3d3cf17 100644
--- a/src/i18n/config/zh.js
+++ b/src/i18n/config/zh.js
@@ -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;
diff --git a/src/views/EditNote.vue b/src/views/EditNote.vue
index 4f94722..81b9aeb 100644
--- a/src/views/EditNote.vue
+++ b/src/views/EditNote.vue
@@ -158,7 +158,7 @@
-
+
diff --git a/src/views/ErrorNote.vue b/src/views/ErrorNote.vue
index 94fff95..fe33e1d 100644
--- a/src/views/ErrorNote.vue
+++ b/src/views/ErrorNote.vue
@@ -81,7 +81,7 @@
-
+
diff --git a/src/views/ViewNote.vue b/src/views/ViewNote.vue
index 7be34e2..e9b4d6d 100644
--- a/src/views/ViewNote.vue
+++ b/src/views/ViewNote.vue
@@ -267,7 +267,7 @@
@@ -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);