refactor(index): 调整版本水印相关逻辑与样式

1. 调整版本连击触发条件为3次以上而非≥3次
2. 优化版本水印的DOM结构和触发绑定方式
3. 简化背景内联样式并调整水印内边距
4. 修改版本水印的颜色和阴影样式
This commit is contained in:
2026-07-10 10:12:04 +08:00
parent 08e4d866f5
commit e8db412595
2 changed files with 9 additions and 12 deletions

View File

@@ -128,14 +128,14 @@ export default {
this.diyGroupReady = true;
},
/**
* 版本连击 3 次显示构建版本信息(供测试人员使用)
* 版本连击 3 次以上显示构建版本信息(供测试人员使用)
*/
onVersionTap() {
this._titleTapCount = (this._titleTapCount || 0) + 1;
if (this._titleTapTimer) {
clearTimeout(this._titleTapTimer);
}
if (this._titleTapCount >= 3) {
if (this._titleTapCount > 3) {
this._titleTapCount = 0;
this._showVersionInfo();
return;