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 })