This commit is contained in:
@@ -46,7 +46,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
await customerApi.createCustomer(this.form)
|
await customerApi.createCustomer(this.form)
|
||||||
uni.showToast({ title: '添加成功', icon: 'success' })
|
uni.showToast({ title: '添加成功', icon: 'success' })
|
||||||
setTimeout(() => uni.navigateBack(), 1500)
|
setTimeout(() => uni.switchTab({ url: '/pages/index/index' }), 1500)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
uni.showToast({ title: e.message || '添加失败', icon: 'none' })
|
uni.showToast({ title: e.message || '添加失败', icon: 'none' })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user