Merge pull request #4038 from jumpserver/pr@v4@fix_assets_error

fixed: Fixed the Error message when updating assets
This commit is contained in:
ZhaoJiSen
2024-06-13 15:44:58 +08:00
committed by GitHub
3 changed files with 1 additions and 9 deletions

View File

@@ -268,7 +268,7 @@ export default {
}
// 由于在新增时有些 Select 会存在初始值,而有些没有,就会导致动态类名判断出现相反的情况
// 此处强制设置没有初始值的动态类名
if (this.iValue.length === 0) this.transformed = false
if (Array.isArray(this.iValue) && this.iValue.length === 0) this.transformed = false
this.$nextTick(() => {
// 因为elform存在问题这个来清楚验证

View File

@@ -19,7 +19,3 @@ export default {
}
}
</script>
<style>
</style>

View File

@@ -324,7 +324,3 @@ export default {
}
}
</script>
<style>
</style>