Commit 32f5173f by 程默

fix footer

parent 64ba1365
...@@ -75,12 +75,7 @@ Component({ ...@@ -75,12 +75,7 @@ Component({
}, },
switchTab(e) { switchTab(e) {
const { index } = e.currentTarget.dataset; const { index } = e.currentTarget.dataset;
if (index==this.data.selected) return
let routes = getCurrentPages();
let currentPage = routes[routes.length - 1].route;
// 当前仅有首页使用
if (currentPage=='pages/home/main') return
app.$themeToLink(this.data.list[index]["link"], 1); app.$themeToLink(this.data.list[index]["link"], 1);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment