This commit is contained in:
ping 2025-09-26 11:08:58 +08:00
parent 551afe9c3f
commit b60a73faec

View File

@ -94,8 +94,16 @@ export default {
if (res.status) { // 假设 status 为 true 表示成功 if (res.status) { // 假设 status 为 true 表示成功
this.$message.success('退订成功'); this.$message.success('退订成功');
// 修复页面跳转 - 使用 path 而不是 url // 修复页面跳转 - 使用 path 而不是 url
this.$router.push({ // this.$router.push({
path: '/customer/unsubscribe/BaiduNetdisk', // path: '/customer/unsubscribe/BaiduNetdisk',
// });
this.loading = true; // 可选:显示加载动画
this.$nextTick(() => { // 保证 iframe 重新渲染
this.url = ''; // 先清空
this.$nextTick(() => {
this.url = `${baseUrl}?redirectUrl=${redirectUrl}&signinSecurityToken=${encodeURIComponent(this.userToken)}`;
this.loading = false;
});
}); });
} else { } else {
// 显示后端返回的错误信息 // 显示后端返回的错误信息