diff --git a/resources/assets/js/pages/manage/application.vue b/resources/assets/js/pages/manage/application.vue index 1741e3f7b..13b8d3062 100644 --- a/resources/assets/js/pages/manage/application.vue +++ b/resources/assets/js/pages/manage/application.vue @@ -54,7 +54,7 @@
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- + +
+
@@ -501,19 +464,23 @@ export default { this.$store.dispatch("call", { url: 'system/setting/aibot', }).then(({data}) => { - for (let key in data) { - const match = key.match(/^(.*?)_models$/); - if (match) { - const value = match[1]; - this.aibotList.map(h => { - if (h.value == value) { - h.tags = AIModelNames(data[key]).map(item => item.label); - } - }); - } - } + this.handleAITags(data); }); }, + // 处理AI标签 + handleAITags(data) { + for (let key in data) { + const match = key.match(/^(.*?)_models$/); + if (match) { + const value = match[1]; + this.aibotList.map(h => { + if (h.value == value) { + h.tags = AIModelNames(data[key]).map(item => item.label); + } + }); + } + } + }, // 开始聊天 onGoToChat(type) { let dialogId = 0; diff --git a/resources/assets/js/pages/manage/setting/components/SystemAibot.vue b/resources/assets/js/pages/manage/setting/components/SystemAibot.vue index 43bffdf46..48a0c2eaa 100644 --- a/resources/assets/js/pages/manage/setting/components/SystemAibot.vue +++ b/resources/assets/js/pages/manage/setting/components/SystemAibot.vue @@ -168,6 +168,7 @@ export default { if (save) { $A.messageSuccess('修改成功'); } + this.$emit('on-update-setting', data); this.formData = data; this.formDatum_bak = $A.cloneJSON(this.formData); }).catch(({msg}) => { diff --git a/resources/assets/sass/pages/page-apply.scss b/resources/assets/sass/pages/page-apply.scss index 60c89bdfe..9e98f38f8 100644 --- a/resources/assets/sass/pages/page-apply.scss +++ b/resources/assets/sass/pages/page-apply.scss @@ -386,7 +386,7 @@ padding: 4px 12px; background: #f5f5f5; border-radius: 12px; - font-size: 13px; + font-size: 12px; color: #666; border: none; margin: 0; @@ -425,7 +425,7 @@ height: 100%; } - .aibot-warp { + .aibot-setting { position: relative; height: 100%; }