快乐的昕的电脑
2025-10-20 43dcf449e718a045a0346e1b9cdbebc46ad33e3d
重复上下刀的报错
已修改1个文件
16 ■■■■ 文件已修改
components/mold.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/mold.vue
@@ -274,11 +274,15 @@
                        data: JSON.stringify(payload),
                        headers: { 'Content-Type': 'application/json' }
                    });
                    if (res.status === 0) {
                    if (res.data && res.data.outMsg) {
                        this.$showMessage(res.data.outMsg);
                    } else if (res.status === 0) {
                        this.$showMessage('上刀提交成功');
                        await this.fetchFormData();
                    } else {
                        this.$showMessage(res.message || '上刀提交失败');
                    }
                    if (res.status === 0) {
                        await this.fetchFormData();
                    }
                } catch (err) {
                    console.error(err);
@@ -314,12 +318,16 @@
                        data: JSON.stringify(payload),
                        headers: { 'Content-Type': 'application/json' }
                    });
                    if (res.status === 0) {
                    if (res.data && res.data.outMsg) {
                        this.$showMessage(res.data.outMsg);
                    } else if (res.status === 0) {
                        this.$showMessage('下刀提交成功');
                        await this.fetchFormData();
                    } else {
                        this.$showMessage(res.message || '下刀提交失败');
                    }
                    if (res.status === 0) {
                        await this.fetchFormData();
                    }
                } catch (err) {
                    console.error(err);
                    this.$showMessage('下刀提交失败,请检查网络');