We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d04a774 commit 5217a93Copy full SHA for 5217a93
adminforth/spa/src/stores/dropdown.ts
@@ -0,0 +1,16 @@
1
+// dropdownStore.ts
2
+import { defineStore } from 'pinia';
3
+import { ref } from 'vue';
4
+
5
+export const useDropdownStore = defineStore('dropdown', () => {
6
+ const openSelectID = ref<string | null>(null);
7
8
+ function setOpenSelectID(id: string) {
9
+ openSelectID.value = id;
10
+ }
11
12
+ return {
13
+ openSelectID,
14
+ setOpenSelectID,
15
+ };
16
+});
0 commit comments