diff --git a/src/pages/customer/create.vue b/src/pages/customer/create.vue index d70a539..2113cc4 100644 --- a/src/pages/customer/create.vue +++ b/src/pages/customer/create.vue @@ -46,7 +46,7 @@ export default { try { await customerApi.createCustomer(this.form) uni.showToast({ title: '添加成功', icon: 'success' }) - setTimeout(() => uni.navigateBack(), 1500) + setTimeout(() => uni.switchTab({ url: '/pages/index/index' }), 1500) } catch (e) { uni.showToast({ title: e.message || '添加失败', icon: 'none' }) }