File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
components/pages/Auth/Client Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,13 @@ export const registClient = async ({
109109} ) => {
110110 try {
111111 let fileURLs = [ ] ;
112- fileURLs = await uploadFiles ( businessLogo , 'logo/' ) ;
112+ const res = await uploadFiles ( businessLogo , 'logo/' ) ;
113+ fileURLs = res . data . fileURLs ;
113114 const businessLogoUrl = fileURLs [ 0 ] ;
114- return await PostAxiosInstance ( '/api/epic/businesses' , {
115+ await PostAxiosInstance ( '/api/epic/businesses' , {
115116 nickName,
116117 businessName,
117- businessLogo : businessLogoUrl ,
118+ businessLogoImg : businessLogoUrl ,
118119 managerName,
119120 managerPhone,
120121 } ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import { registClient } from '../../../../api/oauth';
2020import { useNavigate } from 'react-router-dom' ;
2121
2222const ClientInfo = ( ) => {
23- const { setRegistPage } = useStore ( ) ;
23+ const { setRegistPage, setIsLogin } = useStore ( ) ;
2424 const [ nickName , setNickName ] = useState ( '' ) ;
2525 const [ businessName , setBusinessName ] = useState ( '' ) ;
2626 const [ managerName , setManagerName ] = useState ( '' ) ;
@@ -65,7 +65,7 @@ const ClientInfo = () => {
6565 managerName : managerName ,
6666 managerPhone : managerPhone ,
6767 } ) ;
68-
68+ setIsLogin ( true ) ;
6969 navigate ( '/home' ) ;
7070 } catch ( e ) {
7171 console . error ( e ) ;
You can’t perform that action at this time.
0 commit comments