1234567891011121314151617181920212223242526272829303132333435 |
- const app = getApp()
- Component({
-
- properties: {
- tabbarlist:{
- value:[],
- type:Array
- }
- },
-
- data: {
- },
-
- methods: {
- onChange (e) {
- let path = e.detail.value
- let page = getCurrentPages()[getCurrentPages().length - 1]
- if (path.includes(page.route)) return false
- wx.redirectTo({
- url: path,
- })
- }
- }
- })
|