提交 1344fb42 作者: 18928357778

合并代码

...@@ -3,7 +3,7 @@ const dev = { ...@@ -3,7 +3,7 @@ const dev = {
}; };
const prod = { const prod = {
baseUrl: "/", baseUrl: "",
}; };
export default process.env.NODE_ENV === "development" ? dev : prod; export default process.env.NODE_ENV === "development" ? dev : prod;
...@@ -241,9 +241,12 @@ export default function FlyingHandService() { ...@@ -241,9 +241,12 @@ export default function FlyingHandService() {
try{ try{
const res = await api.PilotRegistrations({ const res = await api.PilotRegistrations({
...values, ...values,
province: values.city[0], city: values.city[values.city.length - 1] || undefined,
city: values.city[values.city.length-1] || null, province: values.city[0] || undefined,
}) uavLicenseLevelOne: values.uavLicenseLevelOne[0],
uavLicenseLevelTow: values.uavLicenseLevelOne[1],
uavLicenseLevelThree: values.uavLicenseLevelOne[2]
});
if (res.code === "200") { if (res.code === "200") {
setLoading(false); setLoading(false);
setIsModalOpen(false); setIsModalOpen(false);
......
...@@ -79,7 +79,13 @@ export default function Cases(props: Props) { ...@@ -79,7 +79,13 @@ export default function Cases(props: Props) {
</Button> </Button>
</div> </div>
</div> </div>
<Button type="primary" className={styles.btn}> <Button
type="primary"
className={styles.btn}
onClick={() =>
Router.push("/projectInfo/caseArticle/" + item.id)
}
>
申请合作 申请合作
</Button> </Button>
</div> </div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论