|
|
@@ -1351,9 +1351,9 @@
|
|
|
<!-- Main -->
|
|
|
<div class="main-area">
|
|
|
<div class="main-header">
|
|
|
- <button class="theme-toggle" id="themeBtn" title="切换主题">
|
|
|
+ <!-- <button class="theme-toggle" id="themeBtn" title="切换主题">
|
|
|
<i class="layui-icon" id="themeIcon"></i>
|
|
|
- </button>
|
|
|
+ </button>-->
|
|
|
</div>
|
|
|
|
|
|
<!-- Welcome View -->
|
|
|
@@ -1694,8 +1694,8 @@
|
|
|
|
|
|
fetch('/js/a/ai/create', {
|
|
|
method: 'POST',
|
|
|
- headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
|
|
|
- body: params.toString()
|
|
|
+ headers: {'Content-Type': 'application/json; charset=UTF-8'},
|
|
|
+ body: JSON.stringify(Object.fromEntries(params))
|
|
|
}).then(function (resp) {
|
|
|
if (!resp.ok) {
|
|
|
throw new Error('save failed');
|
|
|
@@ -1767,11 +1767,11 @@
|
|
|
toggleModelModal(false);
|
|
|
});
|
|
|
modelSaveBtn.addEventListener('click', saveModelConfig);
|
|
|
- modelConfigModal.addEventListener('click', function (e) {
|
|
|
- if (e.target === modelConfigModal) {
|
|
|
- toggleModelModal(false);
|
|
|
- }
|
|
|
- });
|
|
|
+ // modelConfigModal.addEventListener('click', function (e) {
|
|
|
+ // if (e.target === modelConfigModal) {
|
|
|
+ // toggleModelModal(false);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
document.addEventListener('keydown', function (e) {
|
|
|
if (e.key === 'Escape' && modelConfigModal.classList.contains('active')) {
|
|
|
toggleModelModal(false);
|