Open xlearns opened 9 months ago
api
playground
<script setup lang="ts"> import { ref, onMounted } from 'vue' const content = ref('') async function open(){ //@ts-ignore const [fileHandle] = await window.showOpenFilePicker({ mode: 'readwrite' }) const file = await fileHandle.getFile() const ctn = await file.text() content.value = ctn } </script>
{{content}}
api
playground
{{content}}