From ed99aa435030acb1c4b1f36faf685c0ffd572da3 Mon Sep 17 00:00:00 2001 From: lidongtony Date: Mon, 13 Mar 2023 18:56:17 +0800 Subject: [PATCH] =?UTF-8?q?remove:=20=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/address/list.vue | 8 +------- sheep/router/index.js | 7 ------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/pages/user/address/list.vue b/pages/user/address/list.vue index 7f8a5754..9d824329 100644 --- a/pages/user/address/list.vue +++ b/pages/user/address/list.vue @@ -49,18 +49,12 @@ loading: true, }); - // 选择收货地址, 有h5端需返回两次的bug + // 选择收货地址 const onSelect = (addressInfo) => { - // const pages = sheep.$router.getCur(); - // const lastPage = pages[pages.length - 2]; - // if (!_.isEmpty(lastPage) && lastPage.route === "pages/order/confirm") { - // sheep.$router.back(); - // uni.navigateBack(); uni.$emit('SELECT_ADDRESS', { addressInfo, }); sheep.$router.back(); - // } }; // 导入微信地址 diff --git a/sheep/router/index.js b/sheep/router/index.js index 22a43d99..86796e5a 100644 --- a/sheep/router/index.js +++ b/sheep/router/index.js @@ -158,12 +158,6 @@ function getCurrentPage() { return pages[pages.length - 1]; } -function getCur() { - let a = getCurrentPages(); - let pages = clone(a); - return pages; -} - function handleAction(path) { const action = path.split(':'); switch (action[1]) { @@ -187,6 +181,5 @@ export default { redirect, getCurrentPage, getCurrentRoute, - getCur, error, };