mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
Merge branch 'master' of http://gitlab.dongwu-inc.com:10080/BOE/fe-manage
This commit is contained in:
@@ -51,7 +51,10 @@
|
||||
<div class="imgIcon"></div>
|
||||
</div>
|
||||
<div class="boxs_right">
|
||||
<div class="imgIcon" @click="deleteChapter(element.chapterId)"></div>
|
||||
<div
|
||||
class="imgIcon"
|
||||
@click="deleteChapter(element.chapterId)"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="items2">
|
||||
@@ -1713,16 +1716,20 @@ export default {
|
||||
}
|
||||
};
|
||||
//删除关卡
|
||||
const deleteChapter=(chapterId)=>{
|
||||
let obj={
|
||||
chapterId:chapterId
|
||||
}
|
||||
api.deleteChapter(obj).then(res=>{
|
||||
console.log('删除关卡成功',res)
|
||||
}).catch(err=>{
|
||||
console.log('删除关卡失败',err)
|
||||
})
|
||||
}
|
||||
const deleteChapter = (chapterId) => {
|
||||
console.log('chapterId',chapterId)
|
||||
let obj = {
|
||||
chapterId: chapterId,
|
||||
};
|
||||
api
|
||||
.deleteChapter(obj)
|
||||
.then((res) => {
|
||||
console.log("删除关卡成功", res);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("删除关卡失败", err);
|
||||
});
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
// tableDataFunc,
|
||||
|
||||
Reference in New Issue
Block a user