张延森 4 jaren geleden
bovenliggende
commit
3dddfed5a7
1 gewijzigde bestanden met toevoegingen van 5 en 7 verwijderingen
  1. 5
    7
      src/layout/index.vue

+ 5
- 7
src/layout/index.vue Bestand weergeven

@@ -6,11 +6,9 @@
6 6
 
7 7
     <div class="lay-footer">
8 8
       <van-tabbar route>
9
-        <van-tabbar-item replace to="/home" icon="home-o">首页</van-tabbar-item>
10
-        <van-tabbar-item replace to="/house/add" icon="add-o"
11
-          >录入</van-tabbar-item
12
-        >
13
-        <van-tabbar-item replace to="/user" icon="user-o">我的</van-tabbar-item>
9
+        <van-tabbar-item to="/home" icon="home-o">首页</van-tabbar-item>
10
+        <van-tabbar-item to="/house/add" icon="add-o">录入</van-tabbar-item>
11
+        <van-tabbar-item to="/user" icon="user-o">我的</van-tabbar-item>
14 12
       </van-tabbar>
15 13
     </div>
16 14
   </div>
@@ -18,10 +16,10 @@
18 16
 
19 17
 <script>
20 18
 // import Vue from 'vue';
21
-import { Tabbar, TabbarItem } from "vant"
19
+import { Tabbar, TabbarItem } from 'vant'
22 20
 
23 21
 export default {
24
-  name: "layout",
22
+  name: 'layout',
25 23
   components: {
26 24
     [Tabbar.name]: Tabbar,
27 25
     [TabbarItem.name]: TabbarItem,