fix: 删除按钮传入版本号字符串而非对象
CI / Backend tests (push) Canceled after 0s
CI / Frontend build (push) Canceled after 0s

This commit is contained in:
yinjun.chen1
2026-09-29 14:06:34 +08:00
parent 92db535c39
commit 0d6f7c9b2e
+1 -1
View File
@@ -184,7 +184,7 @@ function delVersion(v) {
<span class="ver-size">{{ fmtSize(v.size) }}</span>
<span class="ver-date">{{ fmtDate(v.date) }}</span>
<button class="copy-mini" title="复制安装命令" @click="copyText(`npm install ${pkg.name}@${v.version}`)">📋</button>
<button class="del-btn" title="删除此版本" @click="delVersion(v)">🗑</button>
<button class="del-btn" title="删除此版本" @click="delVersion(v.version)">🗑</button>
</div>
</div>