Przeglądaj źródła

fix: 自动跳转至可靠性预测后查看设备维护设置已正常

Mr. Robot 3 miesięcy temu
rodzic
commit
e180c3f28f

+ 8 - 4
src/views/OperationalReliabilityPrediction/index.vue

@@ -195,10 +195,14 @@ const getAllDomElements = async () => {
   //  })
 };
 const goAdvice = (name: string) => {
-  router.push({
-    path: "/repair/MaintenanceStrategyAssistanceViewHis",
-    query: { name },
-  });
+  if (route.query.source == 3) {
+    router.back();
+  } else {
+    router.push({
+      path: "/repair/MaintenanceStrategyAssistanceViewHis",
+      query: { name },
+    });
+  }
 };
 const statusText = ref({
   健康: "status-value-normal",