shinnosuke
2026-08-06 602fee0c337152f8d19e6b1f71379227b33e0008
fix(admin): 支持移除新增权益图片 (bug #24031)
2个文件已修改
9 ■■■■■ 已修改文件
talent-card-admin/src/style.css 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
talent-card-admin/src/views/EquityImageView.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
talent-card-admin/src/style.css
@@ -2939,7 +2939,7 @@
.equity-upload-row {
  display: grid;
  grid-template-columns: 42px 180px 72px;
  grid-template-columns: 42px 180px repeat(2, 72px);
  gap: 12px 24px;
  align-items: center;
  margin: 24px 0 0 18px;
talent-card-admin/src/views/EquityImageView.vue
@@ -88,6 +88,12 @@
  })
}
function removeImage(index: number) {
  const images = currentConfig().images
  if (images.length <= 1) return
  images.splice(index, 1)
}
async function uploadImage(item: EquityImageItem) {
  const input = document.createElement('input')
  input.type = 'file'
@@ -181,6 +187,7 @@
            <el-icon v-else><Picture /></el-icon>
          </div>
          <el-button type="primary" :loading="uploadingImageId === item.id" @click="uploadImage(item)">上传</el-button>
          <el-button v-if="currentConfig().images.length > 1" @click="removeImage(index)">移除</el-button>
        </div>
      </div>