fix
This commit is contained in:
parent
8bb2f8e221
commit
079b7255be
@ -4,15 +4,7 @@
|
||||
<a-modal v-model:visible="show" @before-ok="submit" @close="reset">
|
||||
<div class="bold mb-20">请输入花卉信息</div>
|
||||
<a-textarea v-model="from" :auto-size="{ miniRows: 6 }"></a-textarea>
|
||||
<div>
|
||||
<div class="bold mt-20">请选择分类</div>
|
||||
<div class="mt-20">
|
||||
<a-tag v-for="item in list" type="primary" class="mr-15" :color="item.checked ? 'green' : ''"
|
||||
@click="check(item)">
|
||||
{{ item.tag }}
|
||||
</a-tag>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
@ -139,12 +131,6 @@ export default {
|
||||
}
|
||||
|
||||
if (this.type === 'add') {
|
||||
// 确定设置了 分类 id
|
||||
if (data.classificationId === '') {
|
||||
this.$message.error('请设置分类')
|
||||
done(false)
|
||||
return
|
||||
}
|
||||
this.$api.flower.save(data).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user