window.AppLayout = { props: { authUser: { type: String, default: '', }, }, emits: ['logout', 'auth-updated'], setup() { const { inject } = Vue; const currentPage = inject('currentPage'); const menuItems = [ { index: 'log', icon: 'Document', label: '日志' }, { index: 'config', icon: 'Setting', label: '配置' }, { index: 'plugin', icon: 'Box', label: '插件' }, { index: 'security', icon: 'Lock', label: '安全' }, ]; return { currentPage, menuItems }; }, template: `
WechatHookBot
Control Surface
{{ item.label }}
Real-time Operations Panel
当前账号: {{ authUser || '-' }} 退出登录
` };