fix(user): 将 goWxacodeTest 移至 methods 块内
修复 "Page does not have a method 'goWxacodeTest'" 错误
原因是 goWxacodeTest 之前被放在了 export default 顶层,
不在 methods: {} 块内,Vue 2 不识别
This commit is contained in:
@@ -635,15 +635,14 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,goWxacodeTest() {
|
||||||
|
console.log("[user] 太阳码扫码测试");
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/annex/web_view/index?scene=app=pregnancy"
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
,
|
|
||||||
goWxacodeTest() {
|
|
||||||
console.log("[user] 太阳码扫码测试");
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/annex/web_view/index?scene=app=pregnancy"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user