提交 8c81c52f authored 作者: coderBryanFu's avatar coderBryanFu

update

上级 b06000c9
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="nav-menu"> <!-- <div class="nav-menu">
<el-dropdown @command="handleHomeCommand" class="home-dropdown"> <el-dropdown @command="handleHomeCommand" class="home-dropdown">
<div class="nav-link dropdown-trigger"> <div class="nav-link dropdown-trigger">
<el-icon> <el-icon>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</el-icon> </el-icon>
<span>事件</span> <span>事件</span>
</div> </div>
</div> </div> -->
<div class="user-info"> <div class="user-info">
<div class="email"> <div class="email">
<img src="@/assets/icons/header-icon.png" alt="" /> <img src="@/assets/icons/header-icon.png" alt="" />
......
...@@ -4,6 +4,8 @@ import { createRouter, createWebHistory } from "vue-router"; ...@@ -4,6 +4,8 @@ import { createRouter, createWebHistory } from "vue-router";
import overView from "@/views/overView/index.vue"; import overView from "@/views/overView/index.vue";
//新闻速览 //新闻速览
import newsBrief from "@/views/newsBrief/index.vue" import newsBrief from "@/views/newsBrief/index.vue"
// 风险信号
import RiskSignal from "@/views/riskSignal/index.vue"
// 智库相关 // 智库相关
import thinkTank from "../views/thinkTank/index.vue"; import thinkTank from "../views/thinkTank/index.vue";
import ThinkTankDetail from "@/views/thinkTank/ThinkTankDetail/index.vue"; import ThinkTankDetail from "@/views/thinkTank/ThinkTankDetail/index.vue";
...@@ -73,7 +75,7 @@ const routes = [ ...@@ -73,7 +75,7 @@ const routes = [
{ {
path: "/", path: "/",
redirect: "/billHome" redirect: "/overView"
}, },
// 中美博弈概览页面路由 // 中美博弈概览页面路由
...@@ -93,6 +95,15 @@ const routes = [ ...@@ -93,6 +95,15 @@ const routes = [
meta: { meta: {
title: "新闻速览" title: "新闻速览"
} }
},
//风险信号页面路由
{
path: "/riskSignal",
name: "riskSignal",
component: RiskSignal,
meta: {
title: "风险信号"
}
}, },
// 智库系统的主要路由 // 智库系统的主要路由
{ {
......
...@@ -299,7 +299,7 @@ const getStreamChat = async (search, inputValue) => { ...@@ -299,7 +299,7 @@ const getStreamChat = async (search, inputValue) => {
if (str !== "[DONE]") { if (str !== "[DONE]") {
reportContent.value += str; reportContent.value += str;
if (reportContent.value.includes("./out/img")) { if (reportContent.value.includes("./out/img")) {
reportContent.value = reportContent.value.replaceAll("./out/img", "http://192.168.61.70:8000/out/img"); reportContent.value = reportContent.value.replaceAll("./out/img", "http://8.140.26.4:10017/out/img");
// console.log(111, reportContent.value); // console.log(111, reportContent.value);
} }
updateContent(reportContent.value, scrollContainer.value); updateContent(reportContent.value, scrollContainer.value);
......
...@@ -41,12 +41,13 @@ export default defineConfig({ ...@@ -41,12 +41,13 @@ export default defineConfig({
rewrite: (path) => path.replace(/^\/api/, '') rewrite: (path) => path.replace(/^\/api/, '')
}, },
'/sseChat': { '/sseChat': {
target: 'http://192.168.26.115:8000', // target: 'http://192.168.26.115:8000',
target: 'http://8.140.26.4:10018/',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/sseChat/, '') rewrite: (path) => path.replace(/^\/sseChat/, '')
}, },
'/sseWrite': { '/sseWrite': {
target: 'http://192.168.61.70:8000', target: 'http://8.140.26.4:10017/',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/sseWrite/, '') rewrite: (path) => path.replace(/^\/sseWrite/, '')
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论