Added: gallery

This commit is contained in:
Molunerfinn
2017-12-07 11:26:29 +08:00
parent ec12ba4e0e
commit 0964c1423b
7 changed files with 177 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ const imgFromPath = async (imgPath) => {
const imgFromClipboard = (file) => {
let result = []
const today = new Date().toLocaleString()
const today = new Date().toLocaleString().replace(/[ ]+/g, '-')
result.push({
base64Image: file.imgUrl.replace(/^data\S+,/, ''),
fileName: `${today}.png`,