From 2c20346f41de97965a9e5b48e73e2137585b6d6f Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Thu, 27 Jun 2024 09:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=8F=82=E6=95=B0=E6=B7=BB=E5=8A=A0tr?= =?UTF-8?q?y=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle_b/pages/local_shop/local_shop_add.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bundle_b/pages/local_shop/local_shop_add.vue b/bundle_b/pages/local_shop/local_shop_add.vue index 7caa564..d6cf411 100644 --- a/bundle_b/pages/local_shop/local_shop_add.vue +++ b/bundle_b/pages/local_shop/local_shop_add.vue @@ -68,11 +68,14 @@ }, onLoad(options) { let title = '添加商品' - if (options.id) { - // 通过id去获取信息,然后重新编辑提交 - title = '商品修改' - this.shop_id = options.id - } + try { + if (options.id) { + // 通过id去获取信息,然后重新编辑提交 + title = '商品修改' + this.shop_id = options.id + } + } catch(e) {} + uni.setNavigationBarTitle({ title: title })