shaogen1995 1 rok temu
rodzic
commit
4a362198e1

+ 1 - 1
src/views/BambooHotView2/index.vue

@@ -458,7 +458,7 @@ const goBack = () => {
     return
   }
 
-  router.push({
+  router.replace({
     name: 'MoreContent',
     query: {
       anchorIdx: 0,

+ 2 - 2
src/views/HomeView(横向滑动).vue

@@ -552,7 +552,7 @@
         webkit-playsinline="true"
         x5-video-player-type="h5"
         muted
-        @ended="router.push({
+        @ended="router.replace({
           name: 'MoreContentChange',
         })"
       />
@@ -560,7 +560,7 @@
     <Transition name="fade-in">
       <BtnSkip
         v-if="isShowSkip"
-        @click="router.push({
+        @click="router.replace({
           name: 'MoreContentChange',
         })"
       />

+ 1 - 1
src/views/HomeView.vue

@@ -625,7 +625,7 @@
     <Transition name="fade-in">
       <BtnSkip
         v-if="isShowSkip"
-        @click="router.push({
+        @click="router.replace({
           name: 'MoreContentChange',
         })"
       />

+ 5 - 5
src/views/MoreContent.vue

@@ -195,7 +195,7 @@
         <HotspotComp
           class="hotspot"
           @click="
-            router.push({
+            router.replace({
               name: 'BambooHot',
             })
           "
@@ -340,7 +340,7 @@
     /> -->
     <BtnBack
       @click="
-        router.push({
+        router.replace({
           name: 'HomeView',
         })
       "
@@ -365,7 +365,7 @@
         x5-video-player-type="h5"
         muted
         @ended="
-          router.push({
+          router.replace({
             name: 'ShuanggouDetail',
           })
         "
@@ -694,14 +694,14 @@ function onClickEntryAtMoZhu(pathName) {
     isShowVideoFadeAtMoZhu.value = true
     nextTick(() => {
       videoFadeAtMoZhuEl.value.addEventListener("ended", () => {
-        router.push({
+        router.replace({
           name: pathName,
         })
       })
       videoFadeAtMoZhuEl.value.play()
     })
   } else {
-    router.push({
+    router.replace({
       name: pathName,
     })
   }

+ 6 - 1
src/views/OnlineSceneView.vue

@@ -13,7 +13,12 @@ const router = useRouter()
     />
     <BtnBack
       class="btn-back"
-      @click="router.go(-1)"
+      @click="router.replace({
+        name: 'MoreContent',
+        query: {
+          anchorIdx: 3,
+        }
+      })"
     />
   </div>
 </template>

+ 1 - 1
src/views/PaintingDetailList.vue

@@ -43,7 +43,7 @@
     />
     <BtnBack
       class="btn-back"
-      @click="router.go(-1)"
+      @click="router.replace({name:'PaintingList'})"
     />
   </div>
 </template>

+ 2 - 2
src/views/PaintingList.vue

@@ -82,7 +82,7 @@
             v-for="item in paintingGroup"
             :key="item['标题']"
             class="painting-item"
-            @click="router.push({
+            @click="router.replace({
               name: 'PaintingDetailList',
               query: {
                 idx: Number(item['序号']) - 1,
@@ -165,7 +165,7 @@
     </ul>
     <BtnBack
       class="button-back"
-      @click="router.push({
+      @click="router.replace({
         name: 'MoreContent',
         query: {
           anchorIdx: 1,

+ 1 - 1
src/views/PoemList copy.vue

@@ -99,7 +99,7 @@
     <BtnBack
       v-show="!isShowMenu"
       class="button-back"
-      @click="router.push({
+      @click="router.replace({
         name: 'MoreContent',
         query: {
           anchorIdx: 1,

+ 1 - 1
src/views/PoemList.vue

@@ -159,7 +159,7 @@ const btnBackFu = () => {
   }, 100)
 
   setTimeout(() => {
-    router.push({
+    router.replace({
       name: "MoreContent",
       query: {
         anchorIdx: 1,

+ 1 - 1
src/views/PoemList(New).vue

@@ -127,7 +127,7 @@ const btnBackFu = () => {
   }, 100)
 
   setTimeout(() => {
-    router.push({
+    router.replace({
       name: "MoreContent",
       query: {
         anchorIdx: 1,

+ 2 - 2
src/views/ShuangGouSheSeDetail.vue

@@ -6,7 +6,7 @@ import useSizeAdapt from "@/useFunctions/useSizeAdapt"
 const router = useRouter()
 
 const goBack = () => {
-  router.push({
+  router.replace({
     name: 'MoreContent',
     query: {
       anchorIdx: 0,
@@ -24,7 +24,7 @@ const reverseArray = (array) => {
 }
 
 const goPaintingDetail = () => {
-  router.push(`/shuanggou-painting-detail?idx=0&&m=${curIndex.value}`)
+  router.replace(`/shuanggou-painting-detail?idx=0&&m=${curIndex.value}`)
 }
 
 const x = window.innerWidth / window.innerHeight

+ 1 - 1
src/views/ShuanggouPaintingDetail.vue

@@ -52,7 +52,7 @@
     />
     <BtnBack
       class="btn-back"
-      @click="router.go(-1)"
+      @click="router.replace({name:'ShuanggouDetail'})"
     />
   </div>
 </template>