feat(admin): 联动用户、预约、排班和部门统计的只读预览

This commit is contained in:
2026-12-01 16:52:47 +08:00
parent e1681f8d13
commit ff55e1568e
23 changed files with 2045 additions and 488 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import classicLogo from './preview-mark.svg'
import artLogo from './preview-mark-art.svg'
const app = createApp(Root)
app.use(store); app.use(ElementPlus); installIcons(app); app.directive('perms', perms)
useUserStore().$patch({ token: '', userInfo: { name: '本地预览', role_ids: [] }, perms: ['order.order/lists','order.order/detail'], routes: pages.map(({ path, name, meta }) => ({ path, name, meta })) as any })
useUserStore().$patch({ token: '', userInfo: { name: '本地预览', role_ids: [] }, perms: ['order.order/lists','order.order/detail','user.user/lists','user.user/detail'], routes: pages.map(({ path, name, meta }) => ({ path, name, meta })) as any })
const appState = useAppStore(), settings = useSettingStore()
appState.$patch({ configFetchAttempted: true, config: { web_name: '甄养堂' } })
settings.$patch({ showLogo: true })