H5/Js/Cpbdsj.js
@@ -29,6 +29,7 @@ DAA001: [], show: false,//列表展示 actions: [],//列表的值 xt:"", } }, mounted() { @@ -347,6 +348,19 @@ }); }, onSelect(item) { // 默认情况下点击选项时不会自动收起 // 可以通过 close-on-click-action 属性开启自动收起 this.show = false; console.log(item); // 正则匹配第一个方括号内容 const regex = /\[([^\]]+)\]/; const matchResult = item.name.match(regex); this.xt = item.name; //this.$toast(item.name); }, } })