main #34
@ -775,7 +775,7 @@ async def baidu_confirm_refund_order(ns={}):
|
|||||||
await sor.U('baidu_orders', {'id': refund_id, 'refundstatus': '1'})
|
await sor.U('baidu_orders', {'id': refund_id, 'refundstatus': '1'})
|
||||||
|
|
||||||
# 增加延迟
|
# 增加延迟
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(4)
|
||||||
|
|
||||||
# 延迟2-3秒还是获取到 ready状态的订单,那就重复请求一次,目的是尽快刷新状态
|
# 延迟2-3秒还是获取到 ready状态的订单,那就重复请求一次,目的是尽快刷新状态
|
||||||
async with aiohttp_client.request(
|
async with aiohttp_client.request(
|
||||||
|
|||||||
@ -97,8 +97,13 @@ export default {
|
|||||||
// this.$router.push({
|
// this.$router.push({
|
||||||
// path: '/customer/unsubscribe/BaiduNetdisk',
|
// path: '/customer/unsubscribe/BaiduNetdisk',
|
||||||
// });
|
// });
|
||||||
window.location.reload(); // 刷新当前页面
|
// 强制刷新整个页面
|
||||||
|
if (this.$router) {
|
||||||
|
this.$router.go(0); // 使用 Vue Router 的方法刷新页面
|
||||||
|
} else {
|
||||||
|
window.location.reload(); // 备用方案,直接刷新页面
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// 显示后端返回的错误信息
|
// 显示后端返回的错误信息
|
||||||
this.$message.error(res.msg || '退订失败,请稍后重试');
|
this.$message.error(res.msg || '退订失败,请稍后重试');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user