mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 新增注册页面
This commit is contained in:
@ -35,6 +35,20 @@ export function fetchLogin(data: Api.Auth.PwdLoginForm) {
|
||||
});
|
||||
}
|
||||
|
||||
/** Register */
|
||||
export function fetchRegister(data: Api.Auth.RegisterForm) {
|
||||
return request<Api.Auth.LoginToken>({
|
||||
url: '/auth/register',
|
||||
method: 'post',
|
||||
headers: {
|
||||
isToken: false,
|
||||
isEncrypt: true,
|
||||
repeatSubmit: false
|
||||
},
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** Get user info */
|
||||
export function fetchGetUserInfo() {
|
||||
return request<Api.Auth.UserInfo>({ url: '/system/user/getInfo' });
|
||||
|
@ -9,6 +9,14 @@ export function fetchGetConfigList(params?: Api.System.ConfigSearchParams) {
|
||||
});
|
||||
}
|
||||
|
||||
/** 根据参数键名查询参数值 */
|
||||
export function fetchGetConfigDetail(configKey: string) {
|
||||
return request<Api.System.Config>({
|
||||
url: `/system/config/configKey/${configKey}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 新增参数配置 */
|
||||
export function fetchCreateConfig(data: Api.System.ConfigOperateParams) {
|
||||
return request<boolean>({
|
||||
@ -34,6 +42,7 @@ export function fetchBatchDeleteConfig(configIds: CommonType.IdType[]) {
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/** 刷新缓存 */
|
||||
export function fetchRefreshCache() {
|
||||
return request<boolean>({
|
||||
|
@ -32,7 +32,7 @@ export const request = createFlatRequest<App.Service.Response, RequestInstanceSt
|
||||
// 客户端 ID
|
||||
config.headers.Clientid = import.meta.env.VITE_APP_CLIENT_ID;
|
||||
// 对应国际化资源文件后缀
|
||||
config.headers['Content-Language'] = 'zh_CN';
|
||||
config.headers['Content-Language'] = (localStg.get('lang') || 'zh-CN').replace('-', '_');
|
||||
|
||||
handleRepeatSubmit(config);
|
||||
|
||||
|
Reference in New Issue
Block a user