From ab8215d1ce6487d33a726e76cd64032a31b9698d Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Thu, 16 Sep 2021 16:19:23 +0800
Subject: [PATCH] 日志注解新增是否保存响应参数
---
ruoyi-ui/src/components/DictTag/index.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ruoyi-ui/src/components/DictTag/index.vue b/ruoyi-ui/src/components/DictTag/index.vue
index 4779415..1ff2c19 100644
--- a/ruoyi-ui/src/components/DictTag/index.vue
+++ b/ruoyi-ui/src/components/DictTag/index.vue
@@ -11,6 +11,7 @@
>
<el-tag
v-else
+ :disable-transitions="true"
:key="item.dictValue"
:index="index"
:type="item.listClass == 'primary' ? '' : item.listClass"
@@ -31,12 +32,12 @@
type: Array,
default: null,
},
- value: [String, Array],
+ value: [Number, String, Array],
},
computed: {
values() {
- if (this.value) {
- return Array.isArray(this.value) ? this.value : [this.value];
+ if (this.value !== null && typeof this.value !== 'undefined') {
+ return Array.isArray(this.value) ? this.value : [String(this.value)];
} else {
return [];
}
@@ -48,4 +49,4 @@
.el-tag + .el-tag {
margin-left: 10px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3