client initial commit
This commit is contained in:
parent
b5f98baa2b
commit
dd1547d7c2
70 changed files with 18446 additions and 0 deletions
20
Services/client/src/stores/loader.ts
Normal file
20
Services/client/src/stores/loader.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useLoader = defineStore('data', () => {
|
||||
const loader = ref<boolean>(false)
|
||||
|
||||
function show() {
|
||||
loader.value = true
|
||||
}
|
||||
|
||||
function hide() {
|
||||
loader.value = false
|
||||
}
|
||||
|
||||
return {
|
||||
loader,
|
||||
show,
|
||||
hide,
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue