fix -- bug

This commit is contained in:
yuping
2023-02-21 04:04:28 +08:00
parent f885ebace3
commit a8bcb035d3

View File

@@ -266,7 +266,7 @@
<div class="opat">
<div class="opacationt clearfix">
<a-switch style="margin-left: -50px; margin-top: 3px" v-model:checked="element.flag"
size="small" active-color="red" @click="changeCourseType(element)"/>
size="small" active-color="red"/>
<div class="showt clearfix">
<div class="bi" :style="{
'z-index': element.checked1 ? 999 : 998,
@@ -451,7 +451,6 @@
import {computed, onMounted, onUnmounted, ref, watch} from "vue";
import {GetRouterDraftDetail, releaseRouter} from "@/api/indexTask";
import {message} from "ant-design-vue";
import {editTask} from "@/api/indexTaskadd";
import {useRoute} from "vue-router";
import UnlockMode from "@/components/drawers/UnlockMode.vue";
import {TASK_TYPE} from "@/utils/const";
@@ -597,11 +596,6 @@ const editTaskForType = (ele, index) => {
courseRef.value['el' + ele.type].openDrawer(index, ele)
};
const changeCourseType = (ele) => {
editTask(ele);
message.destroy();
message.success("修改成功");
};
const showChangeModal = () => {
if (routerInfo.value?.chapterList?.length <= 1) {
message.warning("请添加关卡!");