Răsfoiți Sursa

1、虚拟实验室返回列表重新加载问题

liyanbo 6 luni în urmă
părinte
comite
44e2d67690
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/views/block/Blockly.vue
  2. 1 1
      src/views/block/Blockly2.vue

+ 1 - 1
src/views/block/Blockly.vue

@@ -237,7 +237,7 @@ const goLabShow = () => {
   showLampPreview.value = true;
 };
 const goBack = () => {
-  router.push("/virtual-laboratory");
+  window.location.href = "/virtual-laboratory";
 };
 // 切换灯光状态
 const toggleLight = () => {

+ 1 - 1
src/views/block/Blockly2.vue

@@ -244,7 +244,7 @@ const goLabShow = () => {
   showLampPreview.value = true;
 };
 const goBack = () => {
-  router.push("/virtual-laboratory");
+  window.location.href = "/virtual-laboratory";
 };
 // 切换灯光状态
 const toggleLight = () => {