Commit 22a27ce4 by zhangxw

写法修改

1 parent f816664d
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
{{ item.topTips }} {{ item.topTips }}
</p> </p>
<div <div
v-if="formData[item.name]?.length < item.maxPhotoNum" v-if="(formData[item.name] && formData[item.name].length) < item.maxPhotoNum"
class="activity-img img-w-h" class="activity-img img-w-h"
> >
<div class="add"> <div class="add">
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
> >
</div> </div>
<template> <template>
<div v-if="formData[item.name]?.length"> <div v-if="formData[item.name] && formData[item.name].length">
<span <span
v-for="(subItem, subIndex) in formData[item.name]" v-for="(subItem, subIndex) in formData[item.name]"
:key="subIndex" :key="subIndex"
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
{{ item.topTips }} {{ item.topTips }}
</p> </p>
<div <div
v-if="formData[item.name]?.length < item.maxPhotoNum" v-if="(formData[item.name] && formData[item.name].length) < item.maxPhotoNum"
class="activity-img img-w-h" class="activity-img img-w-h"
> >
<div class="add"> <div class="add">
...@@ -309,7 +309,7 @@ ...@@ -309,7 +309,7 @@
/> />
</div> </div>
<template> <template>
<div v-if="formData[item.name]?.length"> <div v-if="formData[item.name] && formData[item.name].length">
<span <span
v-for="(subItem, subIndex) in formData[item.name]" v-for="(subItem, subIndex) in formData[item.name]"
:key="subIndex" :key="subIndex"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!