Преглед изворни кода

fix: DimensionProductList使用attached生命周期在uni-app中不触发

attached是微信原生组件生命周期,uni-app Vue组件应使用mounted

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
liaoxg пре 3 месеци
родитељ
комит
4de40d1a6c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cfc-frontend/components/DimensionProductList.vue

+ 1 - 1
cfc-frontend/components/DimensionProductList.vue

@@ -43,7 +43,7 @@ export default {
       loading: false
     }
   },
-  attached: function() {
+  mounted: function() {
     this.loadProducts()
   },
   methods: {