|
|
@@ -86,18 +86,23 @@
|
|
|
style="border: none"
|
|
|
>
|
|
|
</a-textarea>
|
|
|
- <!-- <div class="prompt">
|
|
|
- <ul>
|
|
|
- <li class="prompt-item" @click="copyText('43234')">
|
|
|
- <span>
|
|
|
- 344343klsdjkjksdjkjksdjk就开始大家看数据库登记卡受打击凯撒登记卡受打击凯撒登记卡受打击凯撒的43</span
|
|
|
- >
|
|
|
- <span style="margin-left: 20px">
|
|
|
- <icon-right />
|
|
|
- </span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div> -->
|
|
|
+ <div class="prompt" v-if="!activeSessionId">
|
|
|
+ <ul>
|
|
|
+ <li
|
|
|
+ class="prompt-item"
|
|
|
+ @click="copyText(val)"
|
|
|
+ v-for="(val, index) in prompts"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <span>
|
|
|
+ {{ val }}
|
|
|
+ </span>
|
|
|
+ <span style="margin-left: 20px">
|
|
|
+ <icon-right />
|
|
|
+ </span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<template #actions>
|
|
|
<span
|
|
|
@@ -298,6 +303,7 @@
|
|
|
const isStopChat = ref(false);
|
|
|
const appStore = useAppStore();
|
|
|
const sessionObj = reactive({});
|
|
|
+ const prompts = ref([]);
|
|
|
const theme = computed(() => {
|
|
|
return appStore.theme;
|
|
|
});
|
|
|
@@ -360,6 +366,12 @@
|
|
|
role: 'assistant',
|
|
|
},
|
|
|
];
|
|
|
+
|
|
|
+ prompts.value = session.prompts;
|
|
|
+ prompts.value.map((item) => {
|
|
|
+ console.log(item, 78888);
|
|
|
+ });
|
|
|
+
|
|
|
Object.assign(agentObj, session);
|
|
|
from.name = session.name;
|
|
|
const dataSession = session.prompt_config;
|
|
|
@@ -914,18 +926,21 @@
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
}
|
|
|
ul > li {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
.prompt-item {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
+ // display: flex;
|
|
|
+ // justify-content: space-between;
|
|
|
+ display: block;
|
|
|
background-color: #fff;
|
|
|
cursor: pointer;
|
|
|
border-radius: 8px;
|
|
|
padding: 10px;
|
|
|
border: #e5e5e5;
|
|
|
+ margin-right: 30px;
|
|
|
&:hover {
|
|
|
background-color: #eee;
|
|
|
}
|