refactor(index): 调整版本水印相关逻辑与样式
1. 调整版本连击触发条件为3次以上而非≥3次 2. 优化版本水印的DOM结构和触发绑定方式 3. 简化背景内联样式并调整水印内边距 4. 修改版本水印的颜色和阴影样式
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user