张延森 4 years ago
parent
commit
3dddfed5a7
1 changed files with 5 additions and 7 deletions
  1. 5
    7
      src/layout/index.vue

+ 5
- 7
src/layout/index.vue View File

6
 
6
 
7
     <div class="lay-footer">
7
     <div class="lay-footer">
8
       <van-tabbar route>
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
       </van-tabbar>
12
       </van-tabbar>
15
     </div>
13
     </div>
16
   </div>
14
   </div>
18
 
16
 
19
 <script>
17
 <script>
20
 // import Vue from 'vue';
18
 // import Vue from 'vue';
21
-import { Tabbar, TabbarItem } from "vant"
19
+import { Tabbar, TabbarItem } from 'vant'
22
 
20
 
23
 export default {
21
 export default {
24
-  name: "layout",
22
+  name: 'layout',
25
   components: {
23
   components: {
26
     [Tabbar.name]: Tabbar,
24
     [Tabbar.name]: Tabbar,
27
     [TabbarItem.name]: TabbarItem,
25
     [TabbarItem.name]: TabbarItem,