瀏覽代碼

feat: 重定向界面跳转后不能返回当前界面

Damon 9 月之前
父節點
當前提交
fe23b2cefc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/pages/public/uuid.vue

+ 2 - 2
src/pages/public/uuid.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 {