This problem has occurred since 20.7.2, and a new installation of Mi 9 was performed every time.
I kept testing under what conditions the lock screen will dim, and later found that it only happens after the fingerprint recognition is turned on.
It is normal if fingerprint recognition is turned...