Skip to content

Commit

Permalink
chore: prettier code
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 30, 2024
1 parent 559c01d commit 3be54b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.es-ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Proporcionamos `pro-cli` para inicializar rΓ‘pidamente la estructura del proyect
npm i @ant-design/pro-cli -g
pro create myapp
```

Selecciona la versiΓ³n de umi

```
Expand All @@ -95,6 +96,7 @@ Selecciona la versiΓ³n de umi
umi@3
```

> Si seleccionas la versiΓ³n umi@4, los bloques completos aΓΊn no son compatibles.
Si eliges umi@3, tambiΓ©n puedes elegir la plantilla "pro". "Pro" es la plantilla bΓ‘sica, que solo proporciona el contenido bΓ‘sico de la operaciΓ³n del marco. "Complete" contiene todos los bloques, lo cual no es adecuado para el desarrollo secundario como una plantilla bΓ‘sica.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "6.0.0",
"private": true,
"description": "An out-of-box UI solution for enterprise applications",
"repository": "[email protected]:ant-design/ant-design-pro.git",
"scripts": {
"analyze": "cross-env ANALYZE=1 max build",
"build": "max build",
Expand Down
12 changes: 6 additions & 6 deletions src/services/ant-design-pro/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,31 @@ export async function rule(
export async function updateRule(options?: { [key: string]: any }) {
return request<API.RuleListItem>('/api/rule', {
method: 'POST',
data:{
data: {
method: 'update',
...(options || {}),
}
},
});
}

/** ζ–°ε»Ίθ§„εˆ™ POST /api/rule */
export async function addRule(options?: { [key: string]: any }) {
return request<API.RuleListItem>('/api/rule', {
method: 'POST',
data:{
data: {
method: 'post',
...(options || {}),
}
},
});
}

/** εˆ ι™€θ§„εˆ™ DELETE /api/rule */
export async function removeRule(options?: { [key: string]: any }) {
return request<Record<string, any>>('/api/rule', {
method: 'POST',
data:{
data: {
method: 'delete',
...(options || {}),
}
},
});
}

0 comments on commit 3be54b7

Please sign in to comment.