登陆页左侧新广告特效
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
>导出</button>
|
||||
<button
|
||||
class="resume-page__action-btn resume-page__action-btn--delete"
|
||||
@click.stop="handleDelete(item.id)"
|
||||
@click.stop="handleDelete(item.id, item.isDefault)"
|
||||
>删除</button>
|
||||
</div>
|
||||
</td>
|
||||
@@ -262,13 +262,19 @@ function handleExport(item: ResumeItem) {
|
||||
}
|
||||
|
||||
/** 删除简历 */
|
||||
async function handleDelete(id: string) {
|
||||
async function handleDelete(id: string, isDefault: boolean) {
|
||||
try {
|
||||
await ElMessageBox.confirm('确定要删除这份简历吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
})
|
||||
|
||||
if(resumeList.value.length<=1||isDefault){
|
||||
ElMessage.warning('默认简历不可删除')
|
||||
return
|
||||
}
|
||||
|
||||
const res = await deleteResume(id)
|
||||
if (res.code === '0') {
|
||||
ElMessage.success('删除成功')
|
||||
|
||||
Reference in New Issue
Block a user