feat 搭建架构骨架

This commit is contained in:
Ironsp
2026-09-24 09:09:47 +08:00
parent dd9f6b77a4
commit 7a2efa3fea
180 changed files with 18967 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
/** 站点公共数据(站点配置、全局 loading),非页面级 */
export const useSiteStore = defineStore('site', () => {
const globalLoading = ref(false)
// TODO(api): 站点配置接入后由 fetchSiteConfig 覆盖默认值
const siteInfo = ref({
appName: '虫子智造',
hotline: '400-XXX-XXXX',
businessEmail: 'business@chongzizhizao.com',
supportEmail: 'support@chongzizhizao.com',
workTime: '周一-周五 9:00-18:00',
icp: 'ICP 备 XXXXXXXX 号',
police: '公网安备 XXXXXXXXXXXX 号',
})
function setGlobalLoading(value: boolean): void {
globalLoading.value = value
}
return { globalLoading, siteInfo, setGlobalLoading }
})