// Export selected page const exptPageList = data => { if (!data) return; const blob = new
Blob([JSON.stringify(data)], { type: 'text/plain;charset=utf-8', }); saveAs(blob
, ` Page menu .json`); }; // Import page const fileLoad = () => { const reader = new
FileReader(); console.log(' Imported 1', reader.result); reader.onload = () => { const
result= JSON.parse(reader.result); if (Object.prototype.toString.call(result) ==
'[object Object]') { const tempI = menu.pageList.findIndex(item => item.id ==
result.id); if (tempI != -1) { result.id = uuidv1(); } menu.pageList.push(result
); } }; reader.readAsText(refFile.value.files[0], 'utf8'); //
input.files[0] For the first file };

Technology