mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-28 19:09:57 +08:00
fix(form): 当默认值为0时,select 远程选项初始化不正确
This commit is contained in:
parent
3b23e7be6f
commit
e8550728d1
@ -297,7 +297,7 @@ export default defineComponent({
|
|||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
if (!props.model) return;
|
if (!props.model) return;
|
||||||
const v = props.model[props.name];
|
const v = props.model[props.name];
|
||||||
if (Array.isArray(v) ? v.length : v) {
|
if (Array.isArray(v) ? v.length : typeof v !== 'undefined') {
|
||||||
getInitOption().then((data) => {
|
getInitOption().then((data) => {
|
||||||
options.value = data;
|
options.value = data;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user