Browse Source

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

Damon 9 months ago
parent
commit
aefd16e6bd
1 changed files with 2 additions and 2 deletions
  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;
           var isBind = res.data.isBind;
           ///已经绑定
           ///已经绑定
           if (isBind) {
           if (isBind) {
-            uni.navigateTo({
+            uni.redirectTo({
               url: `/pages/public/remote?state=${this.state}&openId=${this.openId}`,
               url: `/pages/public/remote?state=${this.state}&openId=${this.openId}`,
             });
             });
           } else {
           } else {
@@ -79,7 +79,7 @@ export default {
               openId: this.openId,
               openId: this.openId,
             }).then((res) => {
             }).then((res) => {
               if (res.code === 0) {
               if (res.code === 0) {
-                uni.navigateTo({
+                uni.redirectTo({
                   url: `/pages/public/remote?state=${this.state}&openId=${this.openId}`,
                   url: `/pages/public/remote?state=${this.state}&openId=${this.openId}`,
                 });
                 });
               } else {
               } else {