-- fix bug

This commit is contained in:
yuping
2023-02-25 00:40:06 +08:00
parent b6bf0606fc
commit e512cffc9c

View File

@@ -321,7 +321,7 @@
<div class="footbtn">
<div class="btnbox">
<a-button class="btn btn2" @click="temporaryStorage" :loading="templateLoading">暂存</a-button>
<a-button class="btn btn2" @click="temporaryStorage" :loading="confirmLoading">暂存</a-button>
<a-button class="btn btn2" @click="submitStorage" :loading="confirmLoading">确定</a-button>
<a-button class="btn btn1" @click="cancelStorage" :loading="cancleLoading">取消</a-button>
</div>
@@ -376,7 +376,6 @@ const {query: {routerId}} = useRoute();
const modal = ref(false)
const visiblene = ref(false)
const cancleLoading = ref(false)
const templateLoading = ref(false)
const confirmLoading = ref(false)
const moveChapterIndex = ref('')
const activeIndex = ref(0)
@@ -526,12 +525,11 @@ const closeChangeModal = () => {
//暂存
const temporaryStorage = async () => {
// debugger
templateLoading.value = true
confirmLoading.value = true
await request(ROUTER_DETAIL_MODIFY, routerInfo.value)
await getDetail()
message.success("暂存成功");
templateLoading.value = false
confirmLoading.value = false
};
const submitStorage = async () => {