修改删除简历接口

This commit is contained in:
sh
2025-10-13 17:22:39 +08:00
parent 3d2c26650c
commit cc925b74a2

View File

@@ -103,7 +103,7 @@
class="exp-op-btn delete-btn"
size="mini"
type="warn"
@click.stop="handleDeleteItem(index)"
@click.stop="handleDeleteItem(item,index)"
>
删除
</button>
@@ -255,7 +255,7 @@ const handleDeleteItem = async (item, index) => {
if (res.confirm) {
try {
// 调用删除接口
const deleteRes = await $api.createRequest(`/cms/userworkexperiences/${item.id}`, {}, 'delete');
const deleteRes = await $api.createRequest(`/app/userworkexperiences/${item.id}`, {}, 'delete');
if (deleteRes.code === 200) {
workExperiences.value.splice(index, 1); // 删除本地数据
$api.msg('删除成功');