config_tools: update CAT data when board updated

update CAT data when board updated

Tracked-On: #6691
Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
Weiyi Feng 2022-06-05 23:21:54 +08:00 committed by acrnsi-robot
parent 9af79bd80d
commit 3ce7e86313
2 changed files with 12 additions and 0 deletions

View File

@ -148,6 +148,11 @@ export default {
configurator.writeFile(boardFileNewPath, boardInfo.content)
.then(() => configurator.addHistory('Board', boardFileNewPath))
.then(() => this.getBoardHistory())
.then(()=>{
if(!!window.boardUpdate){
window.boardUpdate(boardInfo)
}
})
})
.catch((err) => {
alert(`Loading ${filepath} failed: ${err}`)

View File

@ -147,6 +147,9 @@ export default {
},
mounted() {
this.updateCatInfo()
window.boardUpdate = () => {
this.boardUpdate()
}
},
computed: {
SSRAM_ENABLED: {
@ -210,6 +213,9 @@ export default {
}
},
methods: {
boardUpdate() {
this.updateCatInfo()
},
checkboxController(name, event) {
// prevent default event
event.preventDefault()
@ -439,6 +445,7 @@ export default {
if (preLaunchedVMCPUIDs.indexOf(pcpu_id) !== -1) {
return;
}
// noinspection JSCheckFunctionSignatures
if (!pcpu_vms.hasOwnProperty(pcpu_id)) {
pcpu_vms[pcpu_id] = {'y': [], 'n': []}
}