脚本名字去重

This commit is contained in:
xu_yanfeng 2025-05-22 15:32:41 +08:00
parent 95ae2539e7
commit 0b7054e020

View File

@ -279,7 +279,8 @@ export default defineComponent({
execInspect();
}
if (data.subfixIconTip) {
const multiple = data.subfixIconTip.split("\n");
const arr = data.subfixIconTip.split("\n");
const multiple = [...new Set(arr)];
if (multiple.length >= 2) {
const menus: IUiMenuItem[] = [];
for (let i = 0; i < multiple.length; i++) {