Ver código fonte

feat: 重定向界面跳转后不能返回当前界面兼容腾讯调用

Damon 9 meses atrás
pai
commit
aefd16e6bd
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/pages/public/uuidt.vue

+ 2 - 2
src/pages/public/uuidt.vue

@@ -69,7 +69,7 @@ export default {
           var isBind = res.data.isBind;
           ///已经绑定
           if (isBind) {
-            uni.navigateTo({
+            uni.redirectTo({
               url: `/pages/public/remote?state=${this.state}&openId=${this.openId}`,
             });
           } else {
@@ -79,7 +79,7 @@ export default {
               openId: this.openId,
             }).then((res) => {
               if (res.code === 0) {
-                uni.navigateTo({
+                uni.redirectTo({
                   url: `/pages/public/remote?state=${this.state}&openId=${this.openId}`,
                 });
               } else {