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