@@ -76,8 +76,8 @@ export default {
data() {
return {
loginForm:{
- user_name:"admin",
- password:"123456"
+ user_name:"", //admin
+ password:"" //123456
},
//表单验证规则
@@ -458,7 +458,7 @@ export default {
var send_data = {
"name": me.addForm.name,
"number": me.addForm.number,
- "capacity": me.addForm.capacity,
+ "capacity": parseFloat(me.addForm.capacity),
}
console.log("弹窗参数:", send_data)