surl-front/src/stores/siteconfig-store.ts

14 lines
331 B
TypeScript
Raw Normal View History

2024-07-31 18:11:59 +08:00
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 }
})