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

master
cxy 4 days ago
parent 6746991ec1
commit 03386058dc

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

Loading…
Cancel
Save