1.在有跳轉(zhuǎn)的頁面中 引用
let getPath = require('../utils/getPath.js').getPath
2.methods中跳轉(zhuǎn)放法為
navigator.push({
url: getPath('components/文件名'),
animated: "true"
})
3.每一個有跳轉(zhuǎn)的頁面都要有以上方法
4.不要在index.vue中使用 會報錯。index中只存在tab組件
1.在有跳轉(zhuǎn)的頁面中 引用
let getPath = require('../utils/getPath.js').getPath
2.methods中跳轉(zhuǎn)放法為
navigator.push({
url: getPath('components/文件名'),
animated: "true"
})
3.每一個有跳轉(zhuǎn)的頁面都要有以上方法
4.不要在index.vue中使用 會報錯。index中只存在tab組件