Browse Source

【缺陷修复】商城装修: 顶部导航栏-文字链接支持

puhui999 8 months ago
parent
commit
b92bf484df
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sheep/components/s-custom-navbar/components/navbar-item.vue

+ 1 - 0
sheep/components/s-custom-navbar/components/navbar-item.vue

@@ -6,6 +6,7 @@
       v-if="data.type === 'text'"
       v-if="data.type === 'text'"
       class="nav-title inline"
       class="nav-title inline"
       :style="[{ color: data.textColor, width: width }]"
       :style="[{ color: data.textColor, width: width }]"
+      @tap="sheep.$router.go(data.url)"
     >
     >
       {{ data.text }}
       {{ data.text }}
     </view>
     </view>