surl-front/src/stores/siteconfig-store.ts
2024-07-31 18:11:59 +08:00

14 lines
331 B
TypeScript

import {defineStore} from "pinia";
import {ref} from "vue";
interface SiteConfig {
protocol: string,
host: string
}
export const useSiteConfigStore = defineStore('siteConfigStore', ()=> {
const siteConfig = ref<SiteConfig>({
protocol: 'http',
host: 'localhost:18888'
})
return { siteConfig }
})