diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 6a0040c..484520c 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -44,9 +44,9 @@ const enableNews = ref(false)
const contentStyle = ref("")
const enableFund = ref(false)
const enableDarkTheme = ref(null)
-const content = ref('数据来源于网络,仅供参考;投资有风险,入市需谨慎\n\n未经授权,禁止商业目的!')
+const content = ref('未经授权,禁止商业目的!\n\n数据来源于网络,仅供参考;投资有风险,入市需谨慎')
const isFullscreen = ref(false)
-const activeKey = ref('')
+const activeKey = ref('stock')
const containerRef = ref({})
const realtimeProfit = ref(0)
const telegraph = ref([])
@@ -64,7 +64,10 @@ const menuOptions = ref([
groupId: 0,
},
params: {},
- }
+ },
+ onClick: () => {
+ activeKey.value = 'stock'
+ },
},
{default: () => '股票自选',}
),
@@ -79,6 +82,7 @@ const menuOptions = ref([
href: '#',
type: 'info',
onClick: () => {
+ activeKey.value = 'stock'
//console.log("push",item)
router.push({
name: 'stock',
@@ -114,6 +118,7 @@ const menuOptions = ref([
params: {}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '市场快讯'})
},
},
@@ -135,6 +140,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '市场快讯'})
},
},
@@ -156,6 +162,7 @@ const menuOptions = ref([
},
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '全球股指'})
},
},
@@ -177,6 +184,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '指标行情'})
},
},
@@ -198,6 +206,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '行业排名'})
},
},
@@ -219,6 +228,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '个股资金流向'})
},
},
@@ -240,6 +250,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '龙虎榜'})
},
},
@@ -261,6 +272,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '个股研报'})
},
},
@@ -282,6 +294,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '公司公告'})
},
},
@@ -303,6 +316,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '行业研究'})
},
},
@@ -324,6 +338,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '当前热门'})
},
},
@@ -345,6 +360,7 @@ const menuOptions = ref([
}
},
onClick: () => {
+ activeKey.value = 'market'
EventsEmit("changeMarketTab", {ID: 0, name: '指标选股'})
},
},
@@ -362,8 +378,13 @@ const menuOptions = ref([
{
to: {
name: 'fund',
- params: {},
- }
+ query: {
+ name: '基金自选',
+ },
+ },
+ onClick: () => {
+ activeKey.value = 'fund'
+ },
},
{default: () => '基金自选',}
),
@@ -386,7 +407,12 @@ const menuOptions = ref([
{
to: {
name: 'settings',
- params: {}
+ query: {
+ name:"设置",
+ },
+ onClick: () => {
+ activeKey.value = 'settings'
+ },
}
},
{default: () => '设置'}
@@ -401,8 +427,13 @@ const menuOptions = ref([
{
to: {
name: 'about',
- params: {}
- }
+ query: {
+ name:"关于",
+ }
+ },
+ onClick: () => {
+ activeKey.value = 'about'
+ },
},
{default: () => '关于'}
),
@@ -451,6 +482,7 @@ function renderIcon(icon) {
}
function toggleFullscreen(e) {
+ activeKey.value = 'full'
//console.log(e)
if (isFullscreen.value) {
WindowUnfullscreen()
diff --git a/frontend/src/components/settings.vue b/frontend/src/components/settings.vue
index 8cfa20d..0bf6606 100644
--- a/frontend/src/components/settings.vue
+++ b/frontend/src/components/settings.vue
@@ -1,6 +1,6 @@
-
+
-
-
- 基础设置
-
+
+
+
+
+
@@ -296,11 +297,14 @@ function deletePrompt(ID){
+
+
+
-
- 通知设置
-
+
+
+
@@ -321,11 +325,13 @@ function deletePrompt(ID){
发送测试通知
+
+
-
- OpenAI设置
-
+
+
+
@@ -376,28 +382,38 @@ function deletePrompt(ID){
/>
-
+
+
-
+
添加提示词模板
-
- 保存
-
-
- 导出
-
-
- 导入
-
+
+ 保存
+
+
+ 导出
+
+
+ 导入
+
-
+
+
+
+
+
+ 提示词模板:
+ {{ prompt.name }}
+
+
+
+
+
+
+
-
-
- {{prompt.name}}
-
-
\ No newline at end of file
diff --git a/frontend/src/router/router.js b/frontend/src/router/router.js
index 4715a20..3aa52af 100644
--- a/frontend/src/router/router.js
+++ b/frontend/src/router/router.js
@@ -2,21 +2,22 @@ import {createMemoryHistory, createRouter, createWebHashHistory, createWebHistor
import stockView from '../components/stock.vue'
import settingsView from '../components/settings.vue'
-import about from "../components/about.vue";
+import aboutView from "../components/about.vue";
import fundView from "../components/fund.vue";
-import market from "../components/market.vue";
+import marketView from "../components/market.vue";
const routes = [
{ path: '/', component: stockView,name: 'stock'},
{ path: '/fund', component: fundView,name: 'fund' },
{ path: '/settings', component: settingsView,name: 'settings' },
- { path: '/about', component: about,name: 'about' },
- { path: '/market', component: market,name: 'market' },
+ { path: '/about', component: aboutView,name: 'about' },
+ { path: '/market', component: marketView,name: 'market' },
]
const router = createRouter({
- history: createWebHistory(),
+ //history: createWebHistory(),
+ history: createWebHashHistory(),
routes,
})