diff --git a/package-lock.json b/package-lock.json
index 1af24d3..d3b22bd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6186,6 +6186,11 @@
"integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==",
"dev": true
},
+ "github-markdown-css": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/github-markdown-css/-/github-markdown-css-5.2.0.tgz",
+ "integrity": "sha512-hq5RaCInSUZ48bImOZpkppW2/MT44StRgsbsZ8YA4vJFwLKB/Vo3k7R2t+pUGqO+ThG0QDMi96TewV/B3vyItg=="
+ },
"glob": {
"version": "7.2.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
@@ -7825,6 +7830,11 @@
"object-visit": "^1.0.0"
}
},
+ "marked": {
+ "version": "4.2.12",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.12.tgz",
+ "integrity": "sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw=="
+ },
"matcher": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",
diff --git a/package.json b/package.json
index ac74acf..a79b51f 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,8 @@
"dependencies": {
"@quasar/extras": "^1.0.0",
"core-js": "^3.6.5",
+ "github-markdown-css": "^5.2.0",
+ "marked": "^4.2.12",
"moment": "^2.29.4",
"quasar": "^1.0.0"
},
diff --git a/quasar.conf.js b/quasar.conf.js
index 9f00b62..7d53a89 100644
--- a/quasar.conf.js
+++ b/quasar.conf.js
@@ -81,7 +81,7 @@ module.exports = function (/* ctx */) {
proxy: {
// 接口地址代理
'/': {
- target: 'http://localhost:8090', // 接口的域名
+ target: 'http://localhost:8092', // 接口的域名
secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true // 如果接口跨域,需要进行这个参数配置
}
diff --git a/src/api/chatbot/chatbot.js b/src/api/chatbot/chatbot.js
index 72fd2a8..aa7bfaf 100644
--- a/src/api/chatbot/chatbot.js
+++ b/src/api/chatbot/chatbot.js
@@ -1,7 +1,8 @@
import service from "../../utils/request";
-export const sendQuestion= (param)=>{
+export const sendQuestion= (params)=>{
return service({//获取新闻列表
- url:'/bot?question='+param,
- method:'get'
+ url:'/bot',
+ method:'get',
+ params
})
}
\ No newline at end of file
diff --git a/src/components/EssentialLink.vue b/src/components/EssentialLink.vue
deleted file mode 100644
index 62582d1..0000000
--- a/src/components/EssentialLink.vue
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
- {{ title }}
-
- {{ caption }}
-
-
-
-
-
-
diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue
index 24ede73..ba089f7 100644
--- a/src/layouts/MainLayout.vue
+++ b/src/layouts/MainLayout.vue
@@ -15,14 +15,37 @@
+ 机器人型号
+
+
+
+ {{opt.label}}
+ {{opt.value}}
+
+
+
+
+
+
-
- 发送问题给机器人
-
+
+ 发送问题给机器人
+
-
- 清空聊天记录
-
+
+ 清空聊天记录
+
@@ -62,70 +93,100 @@