基于Java spring + vue3 + nuxt构建的内容管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
468 B

import request from '@/utils/request';
import type { ApiResult } from '@/api';
import type { Customer } from './model';
import { MODULES_API_URL } from '@/config';
/**
* 申请免费体验
*/
export async function apply(data: Customer) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/customer-apply',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}