14 lines
331 B
TypeScript
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 }
|
||
|
})
|