` }; const SettingsPage = { components: { Icon }, template: `

系统设置

此功能正在开发中...

` }; // ===== Router ===== const routes = [ { path: '/', component: CharactersPage }, { path: '/settings', component: SettingsPage } ]; const router = createRouter({ history: createWebHashHistory(), routes }); // ===== Create App ===== const app = createApp(AppLayout); app.component('Icon', Icon); app.use(router); app.mount('#app');
` }; const SettingsPage = { components: { Icon }, template: `

系统设置

此功能正在开发中...

` }; // ===== Router ===== const routes = [ { path: '/', component: CharactersPage }, { path: '/settings', component: SettingsPage } ]; const router = createRouter({ history: createWebHashHistory(), routes }); // ===== Create App ===== const app = createApp(AppLayout); app.component('Icon', Icon); app.use(router); app.mount('#app');