需要在方法前加一个static,重新编译就好了;
static onShareAppMessage(res) {return {title: 'title', // 转发后 所显示的titlepath: 'pages/index/index', // 相对的路径}}
需要在方法前加一个static,重新编译就好了;
static onShareAppMessage(res) {return {title: 'title', // 转发后 所显示的titlepath: 'pages/index/index', // 相对的路径}}