bzkf3 hace 2 años
padre
commit
cdd510f7b1
Se han modificado 2 ficheros con 14 adiciones y 2 borrados
  1. 1 1
      public/dtk/assets/index.26656681.js
  2. 13 1
      src/pages/step/[id].vue

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 1
public/dtk/assets/index.26656681.js


+ 13 - 1
src/pages/step/[id].vue

@@ -319,7 +319,10 @@ function routerPush(path: RouteLocationRaw) {
   router.push(path)
 }
 function windowPushState(path: string) {
-  window.open(`${location.origin}/${path}`, '_self')
+  // 采取如下方式主要由于chrome下history.back()不会重新load页面
+  sessionStorage.setItem('historyLocation', location.href)
+  // window.open(`${location.origin}/${path}`, '_self')
+  location.replace(`${location.origin}/${path}`)
 }
 
 function handleValidTask(currentStep: number, idx: number, idy: number) {
@@ -685,3 +688,12 @@ const TaskEventMap: { [key: string]: () => void } = {
   display: none;
 }
 </style>
+
+<route>
+  {
+    meta: {
+      title: '考试流程',
+      breadcrumb: true,
+    },
+  }
+</route>