fix: 修复弹窗展示位置异常的问题

This commit is contained in:
zhuoqinglian
2026-06-10 10:47:52 +08:00
parent 2bf5725048
commit 28b6c85650
3 changed files with 3 additions and 2 deletions
@@ -123,6 +123,7 @@ export default {
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-top: 15vh !important;
}
::v-deep .el-dialog__header {
@@ -13,7 +13,7 @@ export default {
},
computed: {
isValid() {
return /^(?:[0-9A-F]{2}[:-]){5}[0-9A-F]{2}$/i.test(this.macAddress);
return /^(?:[0-9A-Z]{2}[:-]){5}[0-9A-Z]{2}$/i.test(this.macAddress);
},
segments() {
return this.macAddress.split(':');
@@ -107,7 +107,7 @@
</div>
<!-- Knowledge Base Dialog -->
<knowledge-base-dialog
<KnowledgeBaseDialog
ref="knowledgeBaseDialog"
:title="dialogTitle"
:visible.sync="dialogVisible"