summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangyu <[email protected]>2024-04-17 18:40:43 +0800
committerzhangyu <[email protected]>2024-04-17 18:40:43 +0800
commit98e2e2f6c08b3f7486202b885c4efd10245d5aee (patch)
tree38175b9a01711c577dcc65a2c2e3390ea0e56e35
parent60e5719a7eef09d26279f35012cf89339ad4c937 (diff)
fix: 修改attriburtes最多为100条rel-24.01.15
-rw-r--r--nezha-fronted/src/components/common/rightBox/assetMetaBox.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue
index d5c415ab5..6247cac20 100644
--- a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue
@@ -550,7 +550,7 @@ export default {
this.$forceUpdate()
},
addParam () {
- if (this.editAssetMeta.param.items.length >= 20) {
+ if (this.editAssetMeta.param.items.length >= 100) {
this.$message.error(this.$t('config.assetLabel.moreOptionsError'))
return
}
@@ -575,6 +575,10 @@ export default {
this.$forceUpdate()
},
copyParam (index) {
+ if (this.editAssetMeta.param.items.length >= 100) {
+ this.$message.error(this.$t('config.assetLabel.moreOptionsError'))
+ return
+ }
if (this.editAssetMeta.type.toUpperCase() !== 'CHECKBOX') {
this.editAssetMeta.param.items.push({
name: this.editAssetMeta.param.items[index].name,