@@ -25,6 +25,6 @@
"ignore": [],
"include": []
},
- "appid": "wxda4fb2d98e95b8e0",
+ "appid": "wx6decdf12f9e7a061",
"simulatorPluginLibVersion": {}
}
@@ -305,7 +305,13 @@
changeDisabled(false);
- // TODO 芋艿:待讨论的优化点:1)单规格,要不要默认选中;2)默认要不要选中第一个规格
+
+ // 默认选中第一个规格
+ if (propertyList && propertyList.length) {
+ propertyList.forEach((e) => {
+ if (e.values && e.values.length) onSelectSku(e.id, e.values[0].id)
+ })
+ }
</script>
<style lang="scss" scoped>