attached是微信原生组件生命周期,uni-app Vue组件应使用mounted Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@@ -43,7 +43,7 @@ export default {
loading: false
}
},
- attached: function() {
+ mounted: function() {
this.loadProducts()
methods: {