fix: logs viewer do not scroll after opened

This commit is contained in:
jialin
2024-10-22 15:36:53 +08:00
parent a0a1b8b3e8
commit 902bb06353
7 changed files with 80 additions and 18 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { IApi } from '@umijs/max';
export default (api: IApi) => {
api.modifyHTML(($) => {
const info = JSON.parse(process.env.VERSION || '{}');
const env = info.version ? 'production' : 'development';
const env = process.env.NODE_ENV;
$('html').attr('data-env', env);