tachybase_todo/packages/plugins/@tachybase/plugin-wechat-official-account/src/client/index.tsx
luliangqiang 9261719589 feat: 微信公众号登录插件-未重定向 (#1405)
Reviewed-on: daoyoucloud/tachybase#1405
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: luliangqiang <2650321653@qq.com>
Co-committed-by: luliangqiang <2650321653@qq.com>
2024-07-30 11:08:16 +08:00

14 lines
454 B
TypeScript

import { Plugin } from '@tachybase/client';
import PluginAuthClient from '@tachybase/plugin-auth/client';
import { authType } from '../constants';
import { AdminSettingsForm, SignInButton } from './components';
export class PluginWeCahtOfficialAccount extends Plugin {
async load() {
this.app.pm.get(PluginAuthClient).registerType(authType, { components: { SignInButton, AdminSettingsForm } });
}
}
export default PluginWeCahtOfficialAccount;