mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 21:47:22 +00:00
config_tools: fix when CAT checkbox data missing, ui will hang up in hv.advanced issue
fix when CAT checkbox data missing, ui will hang up in hv.advanced issue Tracked-On: #6691 Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
parent
d6d6c867fc
commit
86028ab1c1
@ -69,7 +69,9 @@
|
|||||||
L{{ CACHE_ALLOCATION.level }} Cache Allocation Technology {{
|
L{{ CACHE_ALLOCATION.level }} Cache Allocation Technology {{
|
||||||
cat_level_region_sum[CACHE_ALLOCATION.level].count > 1 ? ' Module ' + cat_level_region_sum[CACHE_ALLOCATION.level][CACHE_ALLOCATION.id] : ''
|
cat_level_region_sum[CACHE_ALLOCATION.level].count > 1 ? ' Module ' + cat_level_region_sum[CACHE_ALLOCATION.level][CACHE_ALLOCATION.id] : ''
|
||||||
}}
|
}}
|
||||||
(requires CPU affinity to cores {{ Math.min(...CACHE_ALLOCATION.processors) }}~{{ Math.max(...CACHE_ALLOCATION.processors) }} in each desired VM)
|
(requires CPU affinity to cores {{
|
||||||
|
Math.min(...CACHE_ALLOCATION.processors)
|
||||||
|
}}~{{ Math.max(...CACHE_ALLOCATION.processors) }} in each desired VM)
|
||||||
</text>
|
</text>
|
||||||
<b-button @click="setDefaultClosMask(CACHE_ALLOCATION)">
|
<b-button @click="setDefaultClosMask(CACHE_ALLOCATION)">
|
||||||
Apply basic real-time defaults
|
Apply basic real-time defaults
|
||||||
@ -239,7 +241,11 @@ export default {
|
|||||||
if (oldValue === undefined) {
|
if (oldValue === undefined) {
|
||||||
let t = path.split('.');
|
let t = path.split('.');
|
||||||
let parentPath = t.splice(0, t.length - 1).join('.');
|
let parentPath = t.splice(0, t.length - 1).join('.');
|
||||||
vueUtils.setPathVal(this.rootFormData, parentPath, {});
|
if(!vueUtils.getPathVal(this.rootFormData, parentPath)) {
|
||||||
|
vueUtils.setPathVal(this.rootFormData, parentPath, {});
|
||||||
|
}
|
||||||
|
// set to checkbox default value
|
||||||
|
vueUtils.setPathVal(this.rootFormData, path, 'n');
|
||||||
}
|
}
|
||||||
// if data is not empty, set value
|
// if data is not empty, set value
|
||||||
if (data !== null) {
|
if (data !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user