Working example with rerendering of LearningPathDiagram
This commit is contained in:
parent
4111e26828
commit
05e6906878
|
|
@ -46,8 +46,6 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.learningPath) {
|
if (this.learningPath) {
|
||||||
console.log("#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#");
|
|
||||||
console.log(this.learningPath);
|
|
||||||
const internalCircles = [];
|
const internalCircles = [];
|
||||||
this.learningPath.circles.forEach((circle) => {
|
this.learningPath.circles.forEach((circle) => {
|
||||||
const pieWeights = new Array(
|
const pieWeights = new Array(
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const emits = defineEmits(["closemodal"]);
|
||||||
<LearningPathDiagram
|
<LearningPathDiagram
|
||||||
v-if="learningPathStore.learningPath"
|
v-if="learningPathStore.learningPath"
|
||||||
class="w-full"
|
class="w-full"
|
||||||
identifier="verticalVisualization"
|
:identifier="`verticalVisualization-${learningPathStore.learningPath.slug}`"
|
||||||
:vertical="true"
|
:vertical="true"
|
||||||
></LearningPathDiagram>
|
></LearningPathDiagram>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ const createContinueUrl = (learningPath: LearningPath): [string, boolean] => {
|
||||||
</div>
|
</div>
|
||||||
<LearningPathDiagram
|
<LearningPathDiagram
|
||||||
class="mx-auto max-w-[1920px] max-h-[380px] w-full px-4"
|
class="mx-auto max-w-[1920px] max-h-[380px] w-full px-4"
|
||||||
identifier="mainVisualization"
|
:identifier="`mainVisualization-${learningPathStore.learningPath.slug}`"
|
||||||
:vertical="false"
|
:vertical="false"
|
||||||
></LearningPathDiagram>
|
></LearningPathDiagram>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue