'commit'
This commit is contained in:
Binary file not shown.
Binary file not shown.
0
dsLightRag/path/to/target.html
Normal file
0
dsLightRag/path/to/target.html
Normal file
@@ -327,6 +327,13 @@
|
|||||||
const difficultyElement = document.getElementById(`${resourceType}Difficulty`);
|
const difficultyElement = document.getElementById(`${resourceType}Difficulty`);
|
||||||
let userPrompt = document.getElementById(`${resourceType}UserPrompt`).value;
|
let userPrompt = document.getElementById(`${resourceType}UserPrompt`).value;
|
||||||
|
|
||||||
|
// 显示加载动画并禁用按钮
|
||||||
|
loadingElement.style.display = 'flex';
|
||||||
|
generateButton.disabled = true;
|
||||||
|
generateButton.classList.add('btn-disabled');
|
||||||
|
generateButton.innerHTML = `<i class="bi bi-hourglass-split me-2"></i>生成中...`;
|
||||||
|
resultContainer.innerHTML = ''; // 清空之前的结果
|
||||||
|
|
||||||
// 仅当难度选择器存在时才添加分层提示词
|
// 仅当难度选择器存在时才添加分层提示词
|
||||||
if (difficultyElement) {
|
if (difficultyElement) {
|
||||||
const difficulty = difficultyElement.value;
|
const difficulty = difficultyElement.value;
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user