Ver Fonte

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

liyanbo há 6 meses atrás
pai
commit
44e2d67690
2 ficheiros alterados com 2 adições e 2 exclusões
  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 = () => {