import { h } from '@/h'; import '@build/tailwind/main.css'; // tab的app-routes模块 import './tab'; import './page/index.css'; import './main.css'; import { Page } from '@kevisual/store/page'; import { AiChat } from './page/AiChat'; const div = document.createElement('div'); div.className = 'text-4xl text-center p-4 bg-blue-200'; div.innerHTML = 'Browser Apps'; const page = new Page({ path: '', key: '', basename: '', }); page.addPage('/home', 'home'); page.addPage('/ai', 'ai'); page.subscribe('home', (page) => { document.body.appendChild(div); }); page.subscribe('ai', (page) => { const aiChat = AiChat(); console.log(aiChat); document.body.appendChild(aiChat); });