diff --git a/frontend/src/components/stock.vue b/frontend/src/components/stock.vue
index 135836a..40a8c4f 100644
--- a/frontend/src/components/stock.vue
+++ b/frontend/src/components/stock.vue
@@ -4,7 +4,7 @@ import {
Follow,
GetFollowList,
GetStockList,
- Greet,
+ Greet, NewChat,
SendDingDingMessage, SendDingDingMessageByType,
SetAlarmChangePercent,
SetCostPriceAndVolume, SetStockSort,
@@ -13,6 +13,9 @@ import {
import {NButton, NFlex, NForm, NFormItem, NInputNumber, NText, useMessage, useModal,useNotification} from 'naive-ui'
import {EventsOn, WindowFullscreen, WindowReload, WindowUnfullscreen} from '../../wailsjs/runtime'
import {Add, Search,StarOutline} from '@vicons/ionicons5'
+import { MdPreview } from 'md-editor-v3';
+// preview.css相比style.css少了编辑器那部分样式
+import 'md-editor-v3/lib/preview.css';
const message = useMessage()
const modal = useModal()
@@ -27,6 +30,7 @@ const options=ref([])
const modalShow = ref(false)
const modalShow2 = ref(false)
const modalShow3 = ref(false)
+const modalShow4 = ref(false)
const addBTN = ref(true)
const formModel = ref({
name: "",
@@ -45,6 +49,7 @@ const data = reactive({
kURL:"",
resultText: "Please enter your name below 👇",
fullscreen: false,
+ airesult: "",
})
const sortedResults = computed(() => {
@@ -362,6 +367,15 @@ function SendMessage(result,type){
SendDingDingMessageByType(msg,result["股票代码"],type)
}
+function aiCheckStock(stock){
+ message.loading("ai检测中...")
+ NewChat(stock).then(result => {
+ data.name=stock
+ data.airesult=(result)
+ modalShow4.value=true
+ })
+}
+
function getTypeName(type){
switch (type)
{
@@ -416,7 +430,9 @@ function getHeight() {
取消关注
-
+
+ AI分析
+
@@ -431,7 +447,6 @@ function getHeight() {
分时
日K
详情
-
@@ -506,6 +521,10 @@ function getHeight() {
+
+
+
+