shaogen1995 3 年之前
父节点
当前提交
479d11fb90

+ 2 - 0
web/src/views/About/Director.vue

@@ -17,12 +17,14 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link to="/Layout/Home"
+        replace
         tabindex="0"
         aria-description="Home"
       >
         Home>
       </Router-link>
       <Router-link to="/Layout/About"
+        replace
         tabindex="0"
         aria-description="About"
       >

+ 2 - 2
web/src/views/About/President.vue

@@ -4,8 +4,8 @@
     <div class="pos">
       <div>
         <span class="pos1">Your Position:&nbsp;</span>
-        <Router-link to="/Layout/Home">Home></Router-link>
-        <Router-link to="/Layout/About">About></Router-link>
+        <Router-link replace to="/Layout/Home">Home></Router-link>
+        <Router-link replace to="/Layout/About">About></Router-link>
       </div>
     </div>
     <div class="conten">

+ 2 - 0
web/src/views/About/index.vue

@@ -18,6 +18,7 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link
+        replace
         to="/Layout/Home"
         tabindex="0"
         aria-description="Home"
@@ -25,6 +26,7 @@
         Home>
       </Router-link>
       <Router-link
+        replace
         to="/Layout/About"
         tabindex="0"
         aria-description="About"

+ 2 - 0
web/src/views/About/link.vue

@@ -15,6 +15,7 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link
+        replace
         to="/Layout/Home"
         tabindex="0"
         aria-description="Home"
@@ -22,6 +23,7 @@
         Home>
       </Router-link>
       <Router-link
+        replace
         to="/Layout/About"
         tabindex="0"
         aria-description="About"

+ 3 - 2
web/src/views/Collections/index.vue

@@ -23,17 +23,18 @@
       aria-description="You've reached the path area; this area has three URLs; use the tab key to go through the content."
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
-      <Router-link to="/Layout/Home" tabindex="0" aria-description="Home">
+      <Router-link replace to="/Layout/Home" tabindex="0" aria-description="Home">
         Home>
       </Router-link>
       <Router-link
+        replace
         to="/Layout/Collections/Bronzes"
         tabindex="0"
         aria-description="Collections"
       >
         Collections>
       </Router-link>
-      <Router-link to="" tabindex="0" :aria-description="mbTxt">
+      <Router-link replace to="" tabindex="0" :aria-description="mbTxt">
         {{ mbTxt }}>
       </Router-link>
     </div>

+ 2 - 0
web/src/views/Events/index.vue

@@ -15,12 +15,14 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link to="/Layout/Home"
+        replace
         tabindex="0"
         aria-description="Home"
       >
         Home>
       </Router-link>
       <Router-link to="/Layout/Events"
+        replace
         tabindex="0"
         aria-description="Events"
       >

+ 2 - 0
web/src/views/Events/info.vue

@@ -16,6 +16,7 @@
         >
           <span tabindex="0">Your Position:&nbsp;</span>
           <Router-link
+            replace
             to="/Layout/Home"
             tabindex="0"
             aria-description="Home"
@@ -23,6 +24,7 @@
             Home>
           </Router-link>
           <Router-link
+            replace
             to="/Layout/Events"
             tabindex="0"
             aria-description="Events"

+ 3 - 0
web/src/views/Exhibitions/index.vue

@@ -33,16 +33,19 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link
+        replace
         to="/Layout/Home" tabindex="0" aria-description="Home"
       >
         Home>
       </Router-link>
       <Router-link
+        replace
         to="/Layout/Exhibitions/1" tabindex="0" aria-description="Exhibition"
       >
         Exhibitions>
       </Router-link>
       <Router-link
+        replace
         to="" tabindex="0" :aria-description="topLi[topId - 1].name"
       >
         {{ topLi[topId - 1].name }}>

+ 2 - 0
web/src/views/Exhibitions/info.vue

@@ -44,12 +44,14 @@
       <div tabindex="-1">
         <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
         <Router-link to="/Layout/Home"
+          replace
          tabindex="0"
          aria-description="Home"
         >
           Home>
         </Router-link>
         <Router-link to="/Layout/Exhibitions/1"
+          replace
           tabindex="0"
           aria-description="Exhibitions"
         >

+ 8 - 0
web/src/views/Home/index.vue

@@ -7,6 +7,7 @@
     >
       <el-carousel-item key="1">
         <router-link to="/Layout/ExhibitionsInfo?id=1&k=1"
+          replace
           tabindex="0"
           aria-label="Image link"
           aria-description="The Great Journey: the 100th Anniversary of the Founding of the Communist Party of China."
@@ -19,6 +20,7 @@
       </el-carousel-item>
       <el-carousel-item key="2">
         <router-link to="/Layout/Collections/Bronzes"
+          replace
           tabindex="0"
           aria-label="Image link"
           aria-description="What's new? More arts just added to our online collections."
@@ -31,6 +33,7 @@
       </el-carousel-item>
       <el-carousel-item key="3">
         <router-link to="/Layout/ExhibitionsInfo?id=10&k=2"
+          replace
           tabindex="0"
           aria-label="Image link"
           aria-description="Folk Customs in old beijing."
@@ -43,6 +46,7 @@
       </el-carousel-item>
       <el-carousel-item key="4">
         <router-link to="/Layout/Publications/2"
+          replace
           tabindex="0"
           aria-label="Image link"
           aria-description="Exhibition catalogues newly added to our website."
@@ -70,6 +74,7 @@
         </div>
         <div class="info">
           <router-link class="p" to="/Layout/Visit/2"
+            replace
             tabindex="0"
             aria-label="Image link"
             aria-description="Reservation"
@@ -94,6 +99,7 @@
         </div>
         <div class="info">
           <router-link class="p" to="/Layout/Visit/1"
+            replace
             tabindex="0"
             aria-label="Image link"
             aria-description="Hours, Direction & Admission"
@@ -119,6 +125,7 @@
         </div>
         <div class="info">
           <router-link class="p" to="/Layout/About"
+            replace
             tabindex="0"
             aria-label="Image link"
             aria-description="Partners & Connections"
@@ -140,6 +147,7 @@
         </div>
         <div class="info">
           <router-link class="p" to="/Layout/Events"
+            replace
             tabindex="0"
             aria-label="Image link"
             aria-description="Events"

+ 3 - 0
web/src/views/JoinSupport/index.vue

@@ -41,6 +41,7 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link
+        replace
         to="/Layout/Home"
         tabindex="0"
         aria-description="Home"
@@ -48,6 +49,7 @@
         Home>
       </Router-link>
       <Router-link
+        replace
         to="/Layout/JoinSupport/Volunteer"
         tabindex="0"
         aria-description="Join & Support"
@@ -55,6 +57,7 @@
         Join & Support>
       </Router-link>
       <Router-link
+        replace
         :to="`/Layout/JoinSupport/${$route.meta.nameAll}`"
         tabindex="0"
         :aria-description="'Ways to '+$route.meta.nameAll"

+ 3 - 0
web/src/views/LearnEngage/index.vue

@@ -37,6 +37,7 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link
+        replace
         to="/Layout/Home"
         tabindex="0"
         aria-description="Home"
@@ -44,6 +45,7 @@
         Home>
       </Router-link>
       <Router-link
+        replace
         to="/Layout/LearnEngage/Students"
         tabindex="0"
         aria-description="Learn & Engage"
@@ -51,6 +53,7 @@
         Learn & Engage>
       </Router-link>
       <Router-link
+        replace
         to=""
         tabindex="0"
         :aria-description="currentTabText"

+ 3 - 0
web/src/views/LearnEngage/info.vue

@@ -20,18 +20,21 @@
       <div tabindex="-1">
         <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
         <Router-link to="/Layout/Home"
+          replace
           tabindex="0"
           aria-description="Home"
         >
           Home>
         </Router-link>
         <Router-link to="/Layout/LearnEngage/Students"
+          replace
           tabindex="0"
           aria-description="Learn & Engage"
         >
           Learn & Engage>
         </Router-link>
         <Router-link :to="`/Layout/LearnEngage/${mbTxt}?m=${pageSize}`"
+          replace
           tabindex="0"
           :aria-description="mbTxt"
         >

+ 2 - 2
web/src/views/Publications/index.vue

@@ -32,8 +32,8 @@
       aria-label aria-description="You've reached the path area, this area has three URLs; please use the tab key to navigate through the content."
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
-      <Router-link to="/Layout/Home" tabindex="0" aria-description="Home">Home></Router-link>
-      <Router-link to="/Layout/Publications/1" tabindex="0" aria-description="Publications">Publications></Router-link>
+      <Router-link replace to="/Layout/Home" tabindex="0" aria-description="Home">Home></Router-link>
+      <Router-link replace to="/Layout/Publications/1" tabindex="0" aria-description="Publications">Publications></Router-link>
       <span class="jump"
         @click="backUrl"
         @keydown.enter.passive="backUrl"

+ 1 - 0
web/src/views/Search/index.vue

@@ -5,6 +5,7 @@
     >
       <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
       <Router-link to="/Layout/Home"
+        replace
         tabindex="0"
         aria-description="Home"
       >

+ 3 - 0
web/src/views/Visit/index.vue

@@ -31,18 +31,21 @@
     >
       <span class="pos1">Your Position:&nbsp;</span>
       <Router-link to="/Layout/Home"
+        replace
         tabindex="0"
         aria-description="Home"
       >
         Home>
       </Router-link>
       <Router-link to="/Layout/Visit"
+        replace
         tabindex="0"
         aria-description="Visit"
       >
         Visit>
       </Router-link>
       <Router-link to=""
+        replace
         tabindex="0"
         :aria-description="$route.meta.nameAll"
       >

+ 1 - 1
web/src/views/bottom/Employment.vue

@@ -15,7 +15,7 @@
     >
       <div tabindex="-1">
         <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
-        <Router-link to="/Layout/Home" tabindex="0"
+        <Router-link to="/Layout/Home" replace tabindex="0"
           aria-description="Home"
         >
           Home>

+ 1 - 0
web/src/views/bottom/Use.vue

@@ -15,6 +15,7 @@
       <div tabindex="-1">
         <span class="pos1" tabindex="0">Your Position:&nbsp;</span>
         <Router-link to="/Layout/Home"
+          replace
           aria-description="Home"
         >
           Home>

+ 1 - 0
web/src/views/layout/index.vue

@@ -98,6 +98,7 @@
           <template v-for="item in footerData">
             |
             <router-link
+              replace
               class="router-link"
               :to="item.path"
               :key="item.name"