|
@@ -20,8 +20,8 @@ export default function ServiceConsultation() {
|
|
|
const res = await clientGet<BasicInfo[]>("/webSite/getBasicInfo");
|
|
const res = await clientGet<BasicInfo[]>("/webSite/getBasicInfo");
|
|
|
if (res.code === 200 && res.data?.[0]) {
|
|
if (res.code === 200 && res.data?.[0]) {
|
|
|
setBasicInfo({
|
|
setBasicInfo({
|
|
|
- consultationHotline: res.data[0].consultationHotline,
|
|
|
|
|
- telephone: res.data[0].telephone
|
|
|
|
|
|
|
+ consultationHotline: res.data[0].consultationHotline || "",
|
|
|
|
|
+ telephone: res.data[0].telephone || ""
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|