Explorar o código

fix: page not updating when adding a workflow from marketplace

Ahmad Kholid %!s(int64=3) %!d(string=hai) anos
pai
achega
e2e1ccf907
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/newtab/pages/workflows/[id].vue

+ 8 - 0
src/newtab/pages/workflows/[id].vue

@@ -746,6 +746,14 @@ watch(
     router.replace({ ...route, query: { tab: value } });
   }
 );
+watch(
+  () => route.params.id,
+  (value, oldValue) => {
+    if (value && oldValue && value !== oldValue) {
+      window.location.reload();
+    }
+  }
+);
 
 /* eslint-disable consistent-return */
 onBeforeRouteLeave(() => {