fix: fix bugs
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user