mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-25 21:14:09 -03:00
feat: support reverse-proxy URL subpaths (llama-swap, SwarmUI) (#1122)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ref, watch, computed } from 'vue'
|
||||
import type { ComponentWidget, CyclerConfig, LoraPoolConfig } from './types'
|
||||
import { lmApiUrl } from '@/utils/basePath'
|
||||
|
||||
export interface CyclerLoraItem {
|
||||
file_name: string
|
||||
@@ -173,7 +174,7 @@ export function useLoraCyclerState(widget: ComponentWidget<CyclerConfig>) {
|
||||
requestBody.pool_config = poolConfig.filters
|
||||
}
|
||||
|
||||
const response = await fetch('/api/lm/loras/cycler-list', {
|
||||
const response = await fetch(lmApiUrl('/api/lm/loras/cycler-list'), {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user