diff --git a/src/views/feedback/CustomerDetail.jsx b/src/views/feedback/CustomerDetail.jsx index 3172617..7bf8e86 100644 --- a/src/views/feedback/CustomerDetail.jsx +++ b/src/views/feedback/CustomerDetail.jsx @@ -12,7 +12,7 @@ const { Title, Text, Paragraph } = Typography; function Detail() { const navigate = useNavigate(); const { GRI_SN, RefNo, CII_SN } = useParams(); - const {travelAgencyId, token} = usingStorage(); + const {travelAgencyId, loginToken} = usingStorage(); const desc = ['none', 'Unacceptable', 'Poor', 'Fair', 'Very Good', 'Excellent']; const { notification } = App.useApp(); const [form] = Form.useForm(); @@ -168,7 +168,7 @@ function Detail() { name='ghhfile' // accept="image/*" multiple={true} - action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${travelAgencyId}&token=${token}`} + action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${travelAgencyId}&token=${loginToken}`} fileList={fileList} listType='picture-card' onChange={handleChange} diff --git a/src/views/feedback/Detail.jsx b/src/views/feedback/Detail.jsx index b7e36a6..c470ea7 100644 --- a/src/views/feedback/Detail.jsx +++ b/src/views/feedback/Detail.jsx @@ -11,7 +11,7 @@ const { Title, Text, Paragraph } = Typography; function Detail() { const navigate = useNavigate(); const { GRI_SN,RefNo } = useParams(); - const {travelAgencyId, token} = usingStorage(); + const {travelAgencyId, loginToken} = usingStorage(); const desc = ["none", "Unacceptable", "Poor", "Fair", "Very Good", "Excellent"]; const { notification } = App.useApp(); const [form] = Form.useForm(); @@ -166,7 +166,7 @@ function Detail() { name="ghhfile" // accept="image/*" multiple={true} - action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${travelAgencyId}&token=${token}`} + action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${travelAgencyId}&token=${loginToken}`} fileList={fileList} listType="picture-card" onChange={handleChange} diff --git a/src/views/invoice/Detail.jsx b/src/views/invoice/Detail.jsx index f0605eb..608ee8d 100644 --- a/src/views/invoice/Detail.jsx +++ b/src/views/invoice/Detail.jsx @@ -15,7 +15,7 @@ const { Title,Text } = Typography; function Detail() { const navigate = useNavigate(); const { GMDSN, GSN } = useParams(); - const {userId, travelAgencyId, token} = usingStorage(); + const {userId, travelAgencyId, loginToken} = usingStorage(); const [form] = Form.useForm(); const [dataLoading, setDataLoading] = useState(false); const [edited, setEdited] = useState(true); //表单是否允许编辑 @@ -309,7 +309,7 @@ function Detail() {