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>
14 lines
454 B
TypeScript
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;
|