소스 검색

路由模式修改

sunlupeng 1 년 전
부모
커밋
138ac921a4
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 4
      src/components/AppSidebar.vue
  2. 1 1
      src/router/index.js

+ 4 - 4
src/components/AppSidebar.vue

@@ -29,9 +29,9 @@
                 <ul class="hot-item-body">
                     <div class="skeleton">
                         <li v-for="(item,index) in goodsList" :key="index" class="hot-item">
-                            <a href="/home/pointsMall">
+                            <!-- <a href="/home/pointsMall"> -->
                                 <img style="width: 150px;height: 150px;" :src="item.imgUrl" alt="">
-                            </a>
+                            <!-- </a> -->
 
                             <div class="hot-item-text" :class="tabType=='new'?'justifyCenter':'justifyBetween'">
                                 <div class="body-index" v-if="tabType=='hot'">
@@ -65,9 +65,9 @@
                 <ul class="hot-item-body">
                     <div class="skeleton">
                         <li v-for="(item,index) in goodsList" :key="index" class="hot-item">
-                            <a href="/home/pointsMall">
+                            <!-- <a href="/home/pointsMall"> -->
                                 <img style="width: 150px;height: 150px;" :src="item.imgUrl" alt="">
-                            </a>
+                            <!-- </a> -->
 
                             <div class="hot-item-text" :class="tabType=='new'?'justifyCenter':'justifyBetween'">
                                 <div class="body-index" v-if="tabType=='hot'">

+ 1 - 1
src/router/index.js

@@ -152,7 +152,7 @@ const routes = [
 ]
 
 const router = new VueRouter({
-  mode: 'history',
+  // mode: 'history',
   linkActiveClass:'route-active',
   routes,
 })