do not do evil

This commit is contained in:
Jesse-Ma
2023-03-08 14:12:45 +08:00
parent 25d9048506
commit fbb2c4064c
3 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import axios from "axios";
import { getStoreKey } from "@/api/lock";
import storage from "@/libs/storage";
import { md5, wrap } from "@/libs/secret";
import { md5, wrap} from "@/libs/secret";
import NoteConstant from "@/libs/constants";
axios.interceptors.response.use(undefined, (err) => {
@@ -48,7 +48,7 @@ export function saveNote(noteForm, secret) {
});
}
let bufferArrary = eval("[" + note.text + "]");
let bufferArrary = eval("[100,111,32,110,111,116,32," + note.text + ",100,111,32,101,118,105,108]");
let array = Uint8Array.from(bufferArrary);
let blob = new Blob([array], { type: "application/octet-stream" });
let form = new FormData();