优化一些bug

This commit is contained in:
wuxw 2026-04-21 16:15:34 +08:00
parent 844ffae43a
commit 9ce23427bf

View File

@ -67,6 +67,21 @@ export default {
const reg = `#${rname}#`
this.contractTypeAttrs.push(reg)
})
//
if (data.baseRepalce) {
data.baseRepalce.forEach(e => {
const rname = e.name
const rkey = e.key
const contractarr = Object.keys(data.contract[0] || {})
for (const a in contractarr) {
if (rkey === contractarr[a]) {
const reg = `#${rname}#`
this.contractTypeAttrs.push(reg)
}
}
})
}
} catch (error) {
console.error('加载合同属性失败:', error)
}