Commit 2f9e7868 by qinjianhui

fix: 添加全局loading

parent 2b0719ea
......@@ -711,6 +711,11 @@ const handleCancelOrder = async () => {
inputPattern: /.+/,
inputErrorMessage: '取消原因不能为空',
}).then(async ({ value }: { value: string }) => {
const loading = ElLoading.service({
fullscreen: true,
text: '操作中...',
background: 'rgba(0, 0, 0, 0.3)',
})
try {
const res = await cancelStockingOrderApi(selection.value[0].id, value)
if (res.code !== 200) return
......@@ -718,7 +723,9 @@ const handleCancelOrder = async () => {
onRefresh()
} catch (e) {
console.error(e)
}
} finally {
loading.close()
}
})
}
const addInternalTag = async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment