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