From 613c0df738023ade4e4a9e1facd31118e13e4a27 Mon Sep 17 00:00:00 2001 From: Waiting Date: Thu, 6 Jun 2024 17:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=80=BB=E8=BE=91=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/mall/index.vue | 3 +-- src/pages/mine/index.vue | 8 ++++---- src/pages/qrcode/index.vue | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/pages/mall/index.vue b/src/pages/mall/index.vue index 1ee23b5..55f2b46 100644 --- a/src/pages/mall/index.vue +++ b/src/pages/mall/index.vue @@ -50,7 +50,7 @@ import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'; import SkuDialog from '@/components/sku-dialog.vue'; import { assetsUrl, defaultImage } from '@/utils/assets'; -import { goLogin, goPath, isLogin, showToast } from '@/utils'; +import { goPath, isLogin, showToast } from '@/utils'; import { getCategoryList, getGoodsList } from '@/api/goods'; import { CategoryBean, GoodsBean } from '@/api/goods/types'; import useShoppingCartStore from '@/store/modules/shoppingcart'; @@ -69,7 +69,6 @@ const currentPageNum = ref(1); onLoad(() => { if(!isLogin()) { - goLogin(); return; } diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index 831220a..e22e184 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -129,10 +129,10 @@ const cardLink = ref(''); const unPaidOrderCount = ref(0); onLoad(() => { - if(!isLogin()) { - goLogin(); - return; - } + // if(!isLogin()) { + // goLogin(); + // return; + // } }); onShow(async () => { diff --git a/src/pages/qrcode/index.vue b/src/pages/qrcode/index.vue index 1a0eb2d..d1f74d4 100644 --- a/src/pages/qrcode/index.vue +++ b/src/pages/qrcode/index.vue @@ -46,7 +46,7 @@ import { assetsUrl } from '@/utils/assets'; import { generateBarCode, generateQrCode } from '@/api/common'; import { getDynamicCode } from '@/api/user'; import { useUserStore } from '@/store'; -import { goLogin, goPath, isLogin } from '@/utils'; +import { goPath, isLogin } from '@/utils'; const store = useUserStore(); const { userInfo } = storeToRefs(store); @@ -57,7 +57,7 @@ const codeRefreshInterval = ref(30); onLoad(() => { if(!isLogin()) { - goLogin(); + // goLogin(); return; } generateCode();