diff --git a/src/components/common/Error.vue b/src/components/common/Error.vue
index 62442682..c7cc2095 100644
--- a/src/components/common/Error.vue
+++ b/src/components/common/Error.vue
@@ -57,9 +57,10 @@
目前有三种形式,分别是default、tooltip、info
默认,即红框展示:
在标题之后显示,需要鼠标移动到图标上显示弹窗:
- 文字提示:
+ 文字提示:
-->
@@ -121,11 +122,8 @@ export default {
this.localPopoverWidth = this.width !== undefined
}
- if (this.tooltip === undefined && this.info === undefined) {
- this.showDefault = true
- } else {
- this.showDefault = false
- }
+ // 默认default模式
+ this.showDefault = this.tooltip === undefined && this.info === undefined
if (this.width) {
// 避免宽度出现负数的情况
@@ -149,7 +147,3 @@ export default {
}
}
-
-