Skip to content

Commit 143fb05

Browse files
authored
Merge pull request #9285 from GuoLiBin6/fix/glb-to-3.11/src
fix: common alert params error
2 parents 78d5d5a + f009202 commit 143fb05

File tree

1 file changed

+2
-1
lines changed
  • containers/Monitor/views/commonalert/components/new-alert/form

1 file changed

+2
-1
lines changed

containers/Monitor/views/commonalert/components/new-alert/form/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,8 @@ export default {
10281028
if (value) {
10291029
let val = value
10301030
if ((fd.tagOperators[key] === '=~' || fd.tagOperators[key] === '!~') && val && val.length) {
1031-
val = `/${val.map(v => `^${v}$`).join('|')}/`
1031+
const arr = Array.isArray(val) ? val : [val]
1032+
val = `/${arr.map(v => `^${v}$`).join('|')}/`
10321033
}
10331034
const tag = {
10341035
key: fd.tagKeys[key],

0 commit comments

Comments
 (0)