This commit is contained in:
xiaojunnuo
2024-10-10 02:15:05 +08:00
parent b5d8935159
commit f0b2a61246
26 changed files with 262 additions and 120 deletions
@@ -1,4 +1,5 @@
import { AccessInput, BaseAccess, IsAccess } from '@certd/pipeline';
import { isDev } from "../../utils/env.js";
/**
* 这个注解将注册一个授权配置
@@ -41,7 +42,7 @@ export class DemoAccess extends BaseAccess {
demoKeySecret = '';
}
if (process.env.NODE_ENV === 'development') {
if (isDev()) {
//你的实现 要去掉这个if,不然生产环境将不会显示
new DemoAccess();
}