|
|
@@ -312,8 +312,12 @@
|
|
|
icon: 'none'
|
|
|
})
|
|
|
}
|
|
|
- } catch (error) {
|
|
|
- console.error('请求失败:', error);
|
|
|
+ } catch (error: any) {
|
|
|
+ console.error('请求失败:', error);
|
|
|
+ uni.showToast({
|
|
|
+ title: error.message ?? '审批失败',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
} finally {
|
|
|
isDealing.value = false // 无论成功失败都解锁
|
|
|
}
|
|
|
@@ -351,8 +355,12 @@
|
|
|
icon: 'none'
|
|
|
})
|
|
|
}
|
|
|
- } catch (error) {
|
|
|
- console.error('请求失败:', error);
|
|
|
+ } catch (error: any) {
|
|
|
+ console.error('请求失败:', error);
|
|
|
+ uni.showToast({
|
|
|
+ title: error.message ?? '审批失败',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
} finally {
|
|
|
isDealing.value = false // 无论成功失败都解锁
|
|
|
}
|