dev
liuyongli 3 years ago
parent fec170d10d
commit 859f87d819

@ -40,11 +40,12 @@ Component({
switchTab(e) { switchTab(e) {
const data = e.currentTarget.dataset; const data = e.currentTarget.dataset;
const url = data.path const url = data.path
console.log(url)
this.setData({ this.setData({
selected: data.index selected: data.index
}) })
wx.switchTab({ wx.switchTab({
url url: "/" + url
}) })
} }
}, },

@ -49,11 +49,7 @@ Page({
}, },
onLoad: function (options) { onLoad: function (options) {
<<<<<<< HEAD
// app.editTabbar()
=======
>>>>>>> 90cc6f967d3e535c5197774cd22f4d1620038aae
}, },
}) })

Loading…
Cancel
Save