Basic posting

This commit is contained in:
2025-08-03 21:37:18 +08:00
parent 7d3236550c
commit b0834f48d4
8 changed files with 224 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const usePubStore = defineStore('pub', () => {
const publishers = ref<any[]>([])
async function fetchPublishers() {
const resp = await fetch('/api/publishers')
publishers.value = await resp.json()
}
return { publishers, fetchPublishers }
})