门店列表备注删除优化

master
wangdong 6 months ago
parent 0b52e959b9
commit db1be5aac6
  1. 6
      src/views/store/shop/Create.vue
  2. 6
      src/views/store/shop/Update.vue

@ -109,13 +109,13 @@
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol">
<div>
<template v-for="(tag, index) in tags">
<template v-for="tag in tags">
<a-tooltip v-if="tag.length > 20" :key="tag" :title="tag">
<a-tag :key="tag" :closable="index !== 0" @close="() => handleCloseTag(tag)">
<a-tag :key="tag" closable @close="() => handleCloseTag(tag)">
{{ `${tag.slice(0, 20)}...` }}
</a-tag>
</a-tooltip>
<a-tag v-else :key="tag" :closable="index !== 0" @close="() => handleCloseTag(tag)">
<a-tag v-else :key="tag" closable @close="() => handleCloseTag(tag)">
{{ tag }}
</a-tag>
</template>

@ -113,13 +113,13 @@
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol">
<div>
<template v-for="(tag, index) in tags">
<template v-for="tag in tags">
<a-tooltip v-if="tag.length > 20" :key="tag" :title="tag">
<a-tag :key="tag" :closable="index !== 0" @close="() => handleCloseTag(tag)">
<a-tag :key="tag" closable @close="() => handleCloseTag(tag)">
{{ `${tag.slice(0, 20)}...` }}
</a-tag>
</a-tooltip>
<a-tag v-else :key="tag" :closable="index !== 0" @close="() => handleCloseTag(tag)">
<a-tag v-else :key="tag" closable @close="() => handleCloseTag(tag)">
{{ tag }}
</a-tag>
</template>

Loading…
Cancel
Save