瀏覽代碼

bug修改

sunlupeng 1 年之前
父節點
當前提交
4ec6fd2e88
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/permission.js
  2. 1 1
      src/views/HomeView/GoodsDetail.vue
  3. 1 1
      src/views/HomeView/RedeemView.vue

+ 1 - 1
src/permission.js

@@ -4,7 +4,7 @@ import { getToken, setToken } from '@/utils/auth' // getToken from cookie
 import { lockStatus,unlock } from "@/api/allApi";
 //路由跳转之前
 router.beforeEach((to, _from, next) => {
-  // setToken('444a49a3b1d19fc2ba71d3fdee84d055');
+  // setToken('daa8211a2224d6addda4eda860d38c53');
   const path = to.path;
   const Authorization = to.query.Authorization
   if (path.indexOf('auth') != -1 && Authorization) { 

+ 1 - 1
src/views/HomeView/GoodsDetail.vue

@@ -16,7 +16,7 @@
                     </div>
                     <!-- 小图列表 -->
                     <ul class="small">
-                        <li v-for="(img, i) in imageList" :key="i" @mouseenter="enterhandler(i)"
+                        <li v-for="(img, i) in imageList" :key="i" v-if="i<5" @mouseenter="enterhandler(i)"
                             :class="{ active: i == activeIndex }">
                             <img style="width: 100%;" :src="img" alt="" />
                         </li>

+ 1 - 1
src/views/HomeView/RedeemView.vue

@@ -17,7 +17,7 @@
                     </div>
                     <!-- 小图列表 -->
                     <ul class="small">
-                        <li v-for="(img, i) in imageList" :key="i" @mouseenter="enterhandler(i)"
+                        <li v-for="(img, i) in imageList" :key="i" v-if="i<5" @mouseenter="enterhandler(i)"
                             :class="{ active: i == activeIndex }">
                             <img style="width: 100%;" :src="img" alt="" />
                         </li>