Create test notes on startup
This commit is contained in:
parent
9e41b5920a
commit
c2b4592bc9
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import { Note, useNotesStore } from "@/stores/notes";
|
||||||
import { useReposStore } from "@/stores/repos";
|
import { useReposStore } from "@/stores/repos";
|
||||||
import { useUiStore } from "@/stores/ui";
|
import { useUiStore } from "@/stores/ui";
|
||||||
import { RiDeleteBinFill, RiNodeTree, RiSettings3Fill } from "@remixicon/vue";
|
import { RiDeleteBinFill, RiNodeTree, RiSettings3Fill } from "@remixicon/vue";
|
||||||
|
import { onMounted } from "vue";
|
||||||
import CNavbarButton from "./CNavbarButton.vue";
|
import CNavbarButton from "./CNavbarButton.vue";
|
||||||
import CNavbarDropdown from "./CNavbarDropdown.vue";
|
import CNavbarDropdown from "./CNavbarDropdown.vue";
|
||||||
|
|
||||||
|
|
@ -37,6 +38,8 @@ function createSomeNotes() {
|
||||||
.sort((a, b) => a.rand - b.rand)
|
.sort((a, b) => a.rand - b.rand)
|
||||||
.map(({ it }) => it);
|
.map(({ it }) => it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => createSomeNotes());
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue