处理360极速浏览器不支持前端 ?. 判断写法
This commit is contained in:
parent
1768a7fb77
commit
ad0376c077
|
|
@ -221,7 +221,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input class="form-control d-none" :value="form.skus[0]?.variants?.length || ''" required>
|
<input class="form-control d-none" :value="skuIsEmpty" required>
|
||||||
<div class="invalid-feedback" style="font-size: 16px"><i class="bi bi-exclamation-circle-fill"></i> {{ __('admin/product.add_variable') }}</div>
|
<div class="invalid-feedback" style="font-size: 16px"><i class="bi bi-exclamation-circle-fill"></i> {{ __('admin/product.add_variable') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -349,6 +349,10 @@
|
||||||
repeats.push(1);
|
repeats.push(1);
|
||||||
return repeats;
|
return repeats;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
skuIsEmpty() {
|
||||||
|
return (this.form.skus.length && this.form.skus[0].variants.length) || ''
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'source.variables': {
|
'source.variables': {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue