需要在方法前加一個static始衅,重新編譯就好了;
static onShareAppMessage(res) {
return {
title: 'title', // 轉(zhuǎn)發(fā)后 所顯示的title
path: 'pages/index/index', // 相對的路徑
}
}
需要在方法前加一個static始衅,重新編譯就好了;
static onShareAppMessage(res) {
return {
title: 'title', // 轉(zhuǎn)發(fā)后 所顯示的title
path: 'pages/index/index', // 相對的路徑
}
}