fix: fix bugs

This commit is contained in:
2025-11-30 21:40:41 +08:00
parent 6ff8d7acde
commit 01c7a59e02
7 changed files with 118 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
import { app } from '../ai';
import { useEffect, useState } from 'react';
import { local } from '@/modules/query';
import '@kevisual/kv-login'
const getAppRoutes = () => {
const appRoutes = app.routes.map((route) => {
return {
@@ -52,5 +53,18 @@ export const App = () => {
setAppRoutes(getAppRoutes());
}
}>{JSON.stringify(appRoutes, null, 2)}</pre>
<kv-login>
<div id="weixinLogin"></div>
</kv-login>
</div >;
}
// Add custom element to JSX namespace for TypeScript
declare global {
namespace JSX {
interface IntrinsicElements {
'kv-login': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
}
}
}