2.0阶段5调整5: 保存配置改称更新配置;技能文件删按钮改删除;编辑器保存成功即返回列表;模型名点击弹窗去编辑图标;login去版本号;版本号由post-commit钩子自动写入version.json(显示package版本+git提交号)
This commit is contained in:
@@ -77,7 +77,7 @@ async function loadSkillDetail() {
|
||||
'<span class="file-name">' + esc(f.filename) + '</span>' +
|
||||
'<span class="file-size">' + fmtSize(f.size) + '</span>' +
|
||||
'<button class="file-act" onclick="event.stopPropagation();skillsUI.editFile(\'' + a + '\')">编辑</button>' +
|
||||
'<button class="file-act del" onclick="event.stopPropagation();skillsUI.deleteFile(\'' + a + '\')">删</button>' +
|
||||
'<button class="file-act del" onclick="event.stopPropagation();skillsUI.deleteFile(\'' + a + '\')">删除</button>' +
|
||||
'</div>';
|
||||
}).join('') + '</div>' + newBtn;
|
||||
} catch (e) {
|
||||
@@ -163,6 +163,10 @@ async function saveSkillFile() {
|
||||
await req('PUT', '/api/skills/' + encodeURIComponent(curSkill) + '/file', { path: editorPath, content });
|
||||
editorOrig = content;
|
||||
toast('已保存 ' + editorPath);
|
||||
// 保存成功直接退出编辑页回文件列表
|
||||
editorPath = null;
|
||||
setSkillsView('detail');
|
||||
loadSkillDetail();
|
||||
} catch (e) { toast('保存失败:' + e.message); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user