feat: 非精油产品显示份、新增护肤品价目 #30
@@ -456,14 +456,10 @@ const formDilution = ref(6)
|
||||
|
||||
const formCocoRow = ref(null)
|
||||
|
||||
watch(() => formVolume.value, (vol, oldVol) => {
|
||||
watch(() => formVolume.value, (vol) => {
|
||||
if (vol && !formCocoRow.value && parsedCurrentIndex.value < 0) {
|
||||
formCocoRow.value = { oil: '椰子油', drops: vol === 'single' ? 10 : 0, _search: '椰子油', _open: false }
|
||||
}
|
||||
// Switching to single: reset coconut drops if they're too large (leftover from fill mode)
|
||||
if (vol === 'single' && formCocoRow.value && formCocoRow.value.drops > 30) {
|
||||
formCocoRow.value.drops = 10
|
||||
}
|
||||
})
|
||||
|
||||
// EO ingredients (everything except coconut)
|
||||
|
||||
Reference in New Issue
Block a user