Add new store files and update table components
This commit is contained in:
16
src/stores/media.ts
Normal file
16
src/stores/media.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useMediaStore = defineStore('media', () => {
|
||||
const media = ref('')
|
||||
const setData = (value: string) => {
|
||||
media.value = value
|
||||
}
|
||||
const getData = () => {
|
||||
return media.value
|
||||
}
|
||||
return {
|
||||
setData,
|
||||
getData,
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user