bzkf3 2 gadi atpakaļ
vecāks
revīzija
cdd510f7b1
2 mainītis faili ar 14 papildinājumiem un 2 dzēšanām
  1. 1 1
      public/dtk/assets/index.26656681.js
  2. 13 1
      src/pages/step/[id].vue

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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>