Merge remote-tracking branch 'origin/ai-hub' into ai-hub
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -280,3 +280,4 @@ database_backup
|
|||||||
package-lock.json
|
package-lock.json
|
||||||
|
|
||||||
.claude
|
.claude
|
||||||
|
components.d.ts
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ public class AiImageService : ApplicationService
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ids"></param>
|
/// <param name="ids"></param>
|
||||||
[HttpDelete("ai-image/my-tasks")]
|
[HttpDelete("ai-image/my-tasks")]
|
||||||
public async Task DeleteMyTaskAsync([FromBody] List<Guid> ids)
|
public async Task DeleteMyTaskAsync([FromQuery] List<Guid> ids)
|
||||||
{
|
{
|
||||||
var userId = CurrentUser.GetId();
|
var userId = CurrentUser.GetId();
|
||||||
await _imageTaskRepository.DeleteAsync(x => ids.Contains(x.Id) && x.UserId == userId);
|
await _imageTaskRepository.DeleteAsync(x => ids.Contains(x.Id) && x.UserId == userId);
|
||||||
|
|||||||
@@ -32,5 +32,7 @@ export function getImageModels() {
|
|||||||
return post<ImageModel[]>('/ai-image/model').json();
|
return post<ImageModel[]>('/ai-image/model').json();
|
||||||
}
|
}
|
||||||
export function deleteMyTasks(taskIds: string[]) {
|
export function deleteMyTasks(taskIds: string[]) {
|
||||||
return del<void>('/ai-image/my-tasks', taskIds).json();
|
const query = taskIds.map(id => `ids=${encodeURIComponent(id)}`).join('&');
|
||||||
|
const url = `/ai-image/my-tasks${query ? `?${query}` : ''}`;
|
||||||
|
return del<void>(url).json();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ onUnmounted(() => {
|
|||||||
正在绘制您的想象...
|
正在绘制您的想象...
|
||||||
</p>
|
</p>
|
||||||
<p class="text-gray-400 text-sm mt-2">
|
<p class="text-gray-400 text-sm mt-2">
|
||||||
请稍候,这可能需要几秒钟
|
请稍候,这可能需要一小会~
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-gray-400 text-sm mt-2">
|
<p class="text-gray-400 text-sm mt-2">
|
||||||
|
|||||||
2
Yi.Ai.Vue3/types/components.d.ts
vendored
2
Yi.Ai.Vue3/types/components.d.ts
vendored
@@ -25,6 +25,8 @@ declare module 'vue' {
|
|||||||
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
|
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
|
||||||
ElContainer: typeof import('element-plus/es')['ElContainer']
|
ElContainer: typeof import('element-plus/es')['ElContainer']
|
||||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||||
|
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
|
||||||
|
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
ElDivider: typeof import('element-plus/es')['ElDivider']
|
ElDivider: typeof import('element-plus/es')['ElDivider']
|
||||||
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
||||||
|
|||||||
Reference in New Issue
Block a user