Browse Source

嘎嘎嘎

shibei_master
dai 3 years ago
parent
commit
f7f75e1e79
  1. 4
      src/views/modules/shequzhili/xiangmu/cpts/project-info.vue

4
src/views/modules/shequzhili/xiangmu/cpts/project-info.vue

@ -694,7 +694,7 @@ export default {
this.projectTag = await Promise.all( this.projectTag = await Promise.all(
val.map(async (id) => { val.map(async (id) => {
let ele = [...tagOptions.customized, ...tagOptions.defaulted].find( let ele = [...tagOptions.customized, ...tagOptions.defaulted].find(
(item) => item.id == id (item) => item.id == id || item.name == id
); );
if (!ele) { if (!ele) {
await this.createTag(id); await this.createTag(id);
@ -714,7 +714,7 @@ export default {
}; };
}) })
); );
this.projectTag = this.projectTag.filter(item => item.id) this.projectTag = this.projectTag.filter((item) => item.id);
}, },
}, },

Loading…
Cancel
Save