删除了一些没什么用的代码

master
cxy 7 days ago
parent 6746991ec1
commit 03386058dc

@ -102,9 +102,9 @@ const form = reactive({
})
const confirmOrder = () => {
try {
const currentExpressNo = parseInt(form.express_no.slice(2)); // 使 slice
const n = Math.floor(Math.random() * 10) + 1; // 1 10
form.express_no = `SF${currentExpressNo + n}`; //
const currentExpressNo = parseInt(form.express_no.slice(2));
const n = Math.floor(Math.random() * 10) + 1;
form.express_no = `SF${currentExpressNo + n}`;
store.add(form);
ElMessage({
message: '下单成功!',
@ -115,7 +115,7 @@ const confirmOrder = () => {
message: '下单失败,请检查信息!',
type: 'error'
});
console.error('下单错误:', error); //
console.error('下单错误:', error);
}
}

Loading…
Cancel
Save