@@ -270,7 +272,7 @@ async function sendMessage() {
});
}
}
-
+const version1 = ref(2); // 版本号
// 请求数据接口
async function fetchData(code, market) {
try {
@@ -280,6 +282,7 @@ async function fetchData(code, market) {
market: 'usa',
code: 'TSLA',
language: 'cn',
+ version: version1.value
};
const stockDataResult = await axios.post(
@@ -441,7 +444,7 @@ onMounted(() => {
.bk-image {
background-image: url('@/assets/img/AiEmotion/bk03.png');
- background-size: cover;
+ background-size: 100% 100%;
/* background-position: center; */
background-repeat: no-repeat;
width: 95%;
@@ -566,7 +569,7 @@ onMounted(() => {
.class08 {
background-image: url('@/assets/img/AiEmotion/bk03.png');
- background-size: cover;
+ background-size: 100% 100%;
background-repeat: no-repeat;
width: 95%;
height: auto;
@@ -578,7 +581,7 @@ onMounted(() => {
.class06 {
background-image: url('@/assets/img/AiEmotion/bk03.png');
/* 使用导入的背景图片 */
- background-size: cover;
+ background-size: 100% 100%;
/* 确保背景图片完整显示 */
background-repeat: no-repeat;
/* 防止背景图片重复 */
@@ -594,7 +597,7 @@ onMounted(() => {
.class05 {
background-image: url('@/assets/img/AiEmotion/bk03.png');
/* 使用导入的背景图片 */
- background-size: cover;
+ background-size: 100% 100%;
/* 确保背景图片完整显示 */
background-repeat: no-repeat;
/* 防止背景图片重复 */
@@ -610,7 +613,7 @@ onMounted(() => {
.class04 {
background-image: url('@/assets/img/AiEmotion/bk03.png');
/* 使用导入的背景图片 */
- background-size: cover;
+ background-size: 100% 100%;
/* 确保背景图片完整显示 */
background-repeat: no-repeat;
/* 防止背景图片重复 */
@@ -638,6 +641,19 @@ onMounted(() => {
/* 设置最小高度,确保图片显示 */
margin: 0 auto;
}
+.class00{
+ background-size: 100% 100%;
+ /* 确保背景图片完整显示 */
+ background-repeat: no-repeat;
+ /* 防止背景图片重复 */
+ width: 95%;
+ /* 设置容器宽度 */
+ height: auto;
+ /* 高度根据内容动态变化 */
+ min-height: 55rem;
+ /* 设置最小高度,确保图片显示 */
+ margin: 0 auto;
+}
.span02 {
font-size: 1.5rem;
diff --git a/src/views/components/emotionDecod.vue b/src/views/components/emotionDecod.vue
index 5bcd8d0..452e402 100644
--- a/src/views/components/emotionDecod.vue
+++ b/src/views/components/emotionDecod.vue
@@ -344,9 +344,9 @@ onBeforeUnmount(() => {
});