feat: 音乐人注册

feature/artists
fadeaway 6 months ago
parent 51f03e76f6
commit 1511c2f7ea

@ -6,14 +6,14 @@ const nextConfig = {
source: '/queyueapi/:path*', source: '/queyueapi/:path*',
destination: `${process.env.NEXT_PUBLIC_HOST}/:path*`, destination: `${process.env.NEXT_PUBLIC_HOST}/:path*`,
}, },
{ // {
source: '/luoo-music/:path*', // source: '/luoo-music/:path*',
destination: 'http://39.103.180.196:9012/luoo-music/:path*', // destination: 'http://39.103.180.196:9012/luoo-music/:path*',
}, // },
{ // {
source: '/user/artist/:path*', // source: '/user/artist/:path*',
destination: 'http://39.103.180.196:9012/user/artist/:path*', // destination: 'http://39.103.180.196:9012/user/artist/:path*',
}, // },
{ {
source: '/', source: '/',
destination: '/music/all', destination: '/music/all',

@ -24,7 +24,7 @@ const UploadForm = (props: UploadFormProps) => {
imagePreview imagePreview
limit={1} limit={1}
// listType="picture-card" // listType="picture-card"
action="/luoo-music/cms/song/upload/song" action="/queyueapi/luoo-music/cms/song/upload/song"
className={styles.uploadEle} className={styles.uploadEle}
> >
<div className={styles.uploadTrigger}> <div className={styles.uploadTrigger}>

@ -1,10 +1,18 @@
import clientHttp from '@/utils/request/client'; import { getAuthorization } from '@/utils';
/** /**
* @description - * @description -
*/ */
export const apiArtistsSignUp = async (data: any) => {
export const apiArtistsSignUp = async (params: any) => { const token = await getAuthorization();
const result = await clientHttp.post('/user/artist/register', params); const response = await fetch('/queyueapi/user/artist/register', {
return result; headers: {
Authorization: token || '',
'Content-Type': 'application/json',
Connection: 'keep-alive',
},
method: 'POST',
body: JSON.stringify(data),
});
return await response.json();
}; };

Loading…
Cancel
Save