|
|
@@ -30,7 +30,7 @@
|
|
|
</div>
|
|
|
<div class="coco-quick-list">
|
|
|
<button type="button" class="coco-quick-action" v-if="cocoQuickTab === 'page'"
|
|
|
- @click="sendQuickAction(lang.ssAiChatQuickAction3)">
|
|
|
+ @click="sendQuickAction(lang.ssAiChatQuickAction3, 1)">
|
|
|
<span class="coco-quick-action-copy">
|
|
|
<span class="coco-quick-action-title">{{ lang.ssAiChatQuickGenChoicesTitle }}</span>
|
|
|
<span class="coco-quick-action-desc">{{ lang.ssAiChatQuickGenChoicesDesc }}</span>
|
|
|
@@ -45,7 +45,7 @@
|
|
|
</button>
|
|
|
|
|
|
<button type="button" class="coco-quick-action" v-if="cocoQuickTab === 'page'"
|
|
|
- @click="sendQuickAction(lang.ssAiChatQuickAction4)">
|
|
|
+ @click="sendQuickAction(lang.ssAiChatQuickAction4, 1)">
|
|
|
<span class="coco-quick-action-copy">
|
|
|
<span class="coco-quick-action-title">{{ lang.ssAiChatQuickGenWebTitle }}</span>
|
|
|
<span class="coco-quick-action-desc">{{ lang.ssAiChatQuickGenWebDesc }}</span>
|
|
|
@@ -59,7 +59,7 @@
|
|
|
</span>
|
|
|
</button>
|
|
|
<button type="button" class="coco-quick-action" v-if="cocoQuickTab === 'course'"
|
|
|
- @click="sendQuickAction(lang.ssAiChatQuickAction5)">
|
|
|
+ @click="sendQuickAction(lang.ssAiChatQuickAction5, 1)">
|
|
|
<span class="coco-quick-action-copy">
|
|
|
<span class="coco-quick-action-title">{{ lang.ssAiChatQuickRecommendToolsTitle }}</span>
|
|
|
<span class="coco-quick-action-desc">{{ lang.ssAiChatQuickRecommendToolsDesc }}</span>
|
|
|
@@ -72,7 +72,7 @@
|
|
|
</svg>
|
|
|
</span>
|
|
|
</button>
|
|
|
- <button type="button" class="coco-quick-action" v-if="cocoQuickTab === 'course'" @click="sendQuickAction(lang.ssBatchInteractiveWeb)">
|
|
|
+ <button type="button" class="coco-quick-action" v-if="cocoQuickTab === 'course'" @click="sendQuickAction(lang.ssBatchInteractiveWeb, 1)">
|
|
|
<span class="coco-quick-action-copy">
|
|
|
<span class="coco-quick-action-title">{{ lang.ssAiChatQuickBatchGenToolsTitle }}</span>
|
|
|
<span class="coco-quick-action-desc">{{ lang.ssAiChatQuickBatchGenToolsDesc }}</span>
|
|
|
@@ -434,8 +434,11 @@ const prevChatResult = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const sendQuickAction = (action: string) => {
|
|
|
+const sendQuickAction = (action: string, type: number = 2) => {
|
|
|
inputText.value = action
|
|
|
+ if (type === 1) {
|
|
|
+ isQuickActions.value = []
|
|
|
+ }
|
|
|
// sendMessage()
|
|
|
}
|
|
|
|
|
|
@@ -795,7 +798,7 @@ const generate = (message: ChatMessage) => {
|
|
|
gType.value = 'chat'
|
|
|
setPageId(45, res).then(res => {
|
|
|
const baseUrl = setUrl()
|
|
|
- const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${45}`
|
|
|
+ const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${45}&userid=${props.userid || ''}`
|
|
|
createSlide()
|
|
|
createFrameElement(url, 45)
|
|
|
message.gLoading = false
|
|
|
@@ -816,7 +819,7 @@ const generate = (message: ChatMessage) => {
|
|
|
gType.value = 'chat'
|
|
|
setPageId(15, res).then(res => {
|
|
|
const baseUrl = setUrl()
|
|
|
- const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${15}`
|
|
|
+ const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${15}&userid=${props.userid || ''}`
|
|
|
createSlide()
|
|
|
createFrameElement(url, 15)
|
|
|
message.gLoading = false
|
|
|
@@ -837,7 +840,7 @@ const generate = (message: ChatMessage) => {
|
|
|
gType.value = 'chat'
|
|
|
setPageId(78, res).then(res => {
|
|
|
const baseUrl = setUrl()
|
|
|
- const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${78}`
|
|
|
+ const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${78}&userid=${props.userid || ''}`
|
|
|
createSlide()
|
|
|
createFrameElement(url, 78)
|
|
|
message.gLoading = false
|
|
|
@@ -858,7 +861,7 @@ const generate = (message: ChatMessage) => {
|
|
|
gType.value = 'chat'
|
|
|
setPageId(79, res).then(res => {
|
|
|
const baseUrl = setUrl()
|
|
|
- const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${79}`
|
|
|
+ const url = `${baseUrl}/pbl-teacher-table/dist/workPage.html#/setWorkPage?id=${res}&type=${79}&userid=${props.userid || ''}`
|
|
|
createSlide()
|
|
|
createFrameElement(url, 79)
|
|
|
message.gLoading = false
|