mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
Optimize LoRA cache sorting with flexible resort method
- Add optional name-only sorting to LoRA cache resort method - Update API routes to use new resort method with name-only flag - Refactor HTML template to improve script placement and initialization check
This commit is contained in:
@@ -60,9 +60,9 @@
|
||||
</div>
|
||||
|
||||
<script type="module" src="/loras_static/js/main.js"></script>
|
||||
{% if is_initializing %}
|
||||
<script>
|
||||
// 检查初始化状态并设置自动刷新
|
||||
{% if is_initializing %}
|
||||
async function checkInitStatus() {
|
||||
try {
|
||||
const response = await fetch('/api/loras?page=1&page_size=1');
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
// 启动状态检查
|
||||
checkInitStatus();
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user