mirror of https://github.com/rancher/dashboard.git
Harvester: Use random string to trigger pod/node affinity re-render
This commit is contained in:
parent
3784ddece9
commit
c3666c61fb
|
|
@ -54,7 +54,7 @@ export default {
|
|||
defaultWeight: 1,
|
||||
// rules in MatchExpressions.vue can not catch changes what happens on parent component
|
||||
// we need re-render it via key changing
|
||||
rerenderNums: 0
|
||||
rerenderNums: randomStr(4)
|
||||
};
|
||||
}
|
||||
},
|
||||
|
|
@ -107,7 +107,7 @@ export default {
|
|||
},
|
||||
|
||||
remove() {
|
||||
this.rerenderNums += 1;
|
||||
this.rerenderNums = randomStr(4);
|
||||
this.queueUpdate();
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ export default {
|
|||
defaultWeight: 1,
|
||||
// rules in MatchExpressions.vue can not catch changes what happens on parent component
|
||||
// we need re-render it via key changing
|
||||
rerenderNums: 0
|
||||
rerenderNums: randomStr(4)
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -147,7 +147,7 @@ export default {
|
|||
},
|
||||
|
||||
remove() {
|
||||
this.rerenderNums += 1;
|
||||
this.rerenderNums = randomStr(4);
|
||||
this.queueUpdate();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue