+
diff --git a/src/components/dialoguePanel/DialogueThought.vue b/src/components/dialoguePanel/DialogueThought.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1a5af0ee60b2d61ac031cc86b9a04887e00f64ec
--- /dev/null
+++ b/src/components/dialoguePanel/DialogueThought.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+ {{ content }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts
index 60af04e8b6bc4535d7c9854bcd8df7d77066d525..02c108dc1c925284f8e51ecb0ba5362362f7502a 100644
--- a/src/i18n/lang/en.ts
+++ b/src/i18n/lang/en.ts
@@ -9,6 +9,7 @@ export default {
like: 'Like',
},
main: {
+ question:"Recommended Questions",
describe1:"Hi! I'm",
describe2:", and I'm happy to be of service.",
left_describe:"Feel free to ask me, your AI assistant, about any of these topics, or anything else that's on your mind!~",
diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts
index 522e13b705297b4a770131a06f21ada62076f8a5..f77ed7984e9df0de7b718bdd0388ce69cef2ad5d 100644
--- a/src/i18n/lang/zh-cn.ts
+++ b/src/i18n/lang/zh-cn.ts
@@ -9,6 +9,7 @@ export default {
like: '喜欢',
},
main: {
+ question:"推荐问题",
describe1: '你好,我是',
describe2: ',很高兴为你服务',
left_describe: '作为你的智能助手,你可以试着问我关于以下方面的内容哦~',
diff --git a/src/router/index.ts b/src/router/index.ts
index a43c6a9b2685a030293dd24e382558430f4d4180..a22ae84da85288afc66a7561e8c2ecea6cd72d03 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -7,24 +7,36 @@
// IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
// PURPOSE.
// See the Mulan PSL v2 for more details.
-import { createRouter, createWebHistory } from 'vue-router';
+import { createRouter, createWebHashHistory } from 'vue-router';
import NotFoundComponent from 'src/views/404.vue';
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper';
const router = createRouter({
- history: createWebHistory(qiankunWindow.__POWERED_BY_QIANKUN__ ? '/eulercopilot/' : '/'),
+ history: createWebHashHistory(qiankunWindow.__POWERED_BY_QIANKUN__ ? '/eulercopilot/' : '/'),
routes: [
{
path: '/',
name: 'dialogue',
- component: (): Promise
=>
- import('src/views/dialogue/dialogueView.vue'),
+ component: (): Promise =>
+ import('src/views/dialogue/Copilot.vue'),
},
{
path: '/login',
name: 'dialogue-login',
- component: (): Promise =>
- import('src/views/dialogue/dialogueView.vue'),
+ component: (): Promise =>
+ import('src/views/dialogue/Copilot.vue'),
+ },
+ {
+ path: '/copilot',
+ name: 'copilot',
+ component: (): Promise =>
+ import('src/views/dialogue/Copilot.vue'),
+ },
+ {
+ path: '/tools',
+ name: 'tools',
+ component: (): Promise =>
+ import('src/views/tools/index.vue'),
},
{
path: '/404',
diff --git a/src/views/dialogue/Copilot.vue b/src/views/dialogue/Copilot.vue
index e9d50896b8b3450f129f5377c9ebe9ddeb2bad06..11c69e77f76ea5d74ba1318cde4bfc8cf13cbd97 100644
--- a/src/views/dialogue/Copilot.vue
+++ b/src/views/dialogue/Copilot.vue
@@ -51,16 +51,16 @@ const initCopilot = async (): Promise => {
}
userinfo.value.organization = type;
const currRoute = router.currentRoute;
- if (currRoute.value.path === '/') {
+ if ( ['/copilot','/'].includes(currRoute.value?.path)) {
const isLogin = await getUserInfo();
if (isLogin) {
await api.getRecognitionMode()
await api.stopGeneration();
await getHistorySession();
setPlugins();
- }
- return;
}
+ return;
+ }
};
const dialogVisible = ref(false);
@@ -117,9 +117,7 @@ watch(
+ :visible="agreeDialogVisiable"
+ :content="tip"
+ :need-check="false"
+ height="300px"
+ agreement-name="内测声明"
+ @submit="agreeDialogVisiable = false"
+ >
diff --git a/src/views/dialogue/components/DialogueAside.vue b/src/views/dialogue/components/DialogueAside.vue
index ca910a6b65512ca47d207d55464f3c0c00849801..2c34518f9f60c437be4725c6afdfa21d3e492adf 100644
--- a/src/views/dialogue/components/DialogueAside.vue
+++ b/src/views/dialogue/components/DialogueAside.vue
@@ -207,11 +207,6 @@ function hanleAsideVisible(): void {