1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2026-05-07 04:19:19 +08:00

#121 save inquiries in store

This commit is contained in:
lana-k
2025-01-05 21:06:06 +01:00
parent 378b9fb580
commit d6408bdd85
7 changed files with 107 additions and 79 deletions

View File

@@ -4,6 +4,29 @@
</div>
</template>
<script>
import storedInquiries from '@/lib/storedInquiries'
export default {
created () {
this.$store.commit('setInquiries', storedInquiries.getStoredInquiries())
},
computed: {
inquiries () {
return this.$store.state.inquiries
}
},
watch: {
inquiries: {
deep: true,
handler () {
storedInquiries.updateStorage(this.inquiries)
}
}
}
}
</script>
<style>
@font-face {
font-family: "Open Sans";