Commit b115130c by lixiaomin

修改机型组件页面

parent 36f44db5
......@@ -99,7 +99,7 @@ service.interceptors.response.use(res => {
type: 'error'
})
return Promise.reject(new Error(msg))
} else if (code !== 200 && code !=21001) {
} else if (code !== 200 && code !=21001 && code !=21004) {
Notification.error({
title: msg
})
......
......@@ -294,6 +294,9 @@ export default {
}else if(response.code==21001){
this.$message.error('该机型已有机器绑定,请重新填写!');
row.isShow = true;
}else if(response.code==21004){
this.$message.error('该组件重复添加,请重新填写!');
row.isShow = true;
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment