|
@@ -171,6 +171,7 @@ const activeComponent = index => {
|
|
|
}
|
|
|
// 当前缓存
|
|
|
if (!cache_components.value[index]) {
|
|
|
+ cache_components.value[index] = true
|
|
|
// 更新数据
|
|
|
const updateCompInfo = compRefs.value[index]?.updateCompInfo
|
|
|
// console.error('刷新数据')
|
|
@@ -223,6 +224,7 @@ const getCurrentProcessDetailEv = async () => {
|
|
|
for (let i = 0; i < _refs.length; i++) {
|
|
|
const updateCompInfo = compRefs.value[i]?.updateCompInfo
|
|
|
if (updateCompInfo) {
|
|
|
+ cache_components.value[i] = true
|
|
|
updateCompInfo()
|
|
|
}
|
|
|
}
|
|
@@ -231,12 +233,14 @@ const getCurrentProcessDetailEv = async () => {
|
|
|
loading.value = false
|
|
|
})
|
|
|
} else {
|
|
|
+ cache_components.value = {}
|
|
|
nextTick(() => {
|
|
|
// 默认执行一次保存
|
|
|
const _refs = compRefs.value
|
|
|
for (let i = 0; i < _refs.length; i++) {
|
|
|
const updateCompInfo = compRefs.value[i]?.updateCompInfo
|
|
|
if (updateCompInfo) {
|
|
|
+ cache_components.value[i] = true
|
|
|
updateCompInfo()
|
|
|
}
|
|
|
}
|