liyuliangjiazai пре 3 месеци
родитељ
комит
965e1989f3

+ 2 - 2
code/ajyApp/utils/http/config.js

@@ -11,9 +11,9 @@ baseUrl = '/api' // H5 走代理
 // #endif
 
 // #ifdef APP-PLUS || MP-WEIXIN || MP-ALIPAY
-baseUrl = 'http://ajy.iwintrue.com/api' // TODO: 替换为实际接口域名
+baseUrl = 'http://192.168.1.4:18888/api' // TODO: 替换为实际接口域名
 // #endif
-
+// http://ajy.iwintrue.com/api
 export default {
   // 接口基础地址
   baseUrl,

+ 1 - 1
code/backend/src/main/java/com/aijiuyi/admin/controller/ArticleViewController.java

@@ -87,7 +87,7 @@ public class ArticleViewController {
         html.append("padding: 8px 12px; word-break: break-word; overflow-wrap: break-word; }\n");
         // 对应 content_style 中的 img/video
         html.append(".article-content img { max-width: 100%; height: auto; }\n");
-        html.append(".article-content video { max-width: 100%; }\n");
+        html.append(".article-content video { max-width: 100%; height: auto !important; }\n");
         // ---- 以下对应 TinyMCE content.css (skins/content/default/content.css) ----
         html.append(".article-content table { border-collapse: collapse; }\n");
         html.append(".article-content table:not([cellpadding]) th, .article-content table:not([cellpadding]) td { padding: 0.4rem; }\n");

+ 1 - 1
code/frontend/src/components/RichEditor.vue

@@ -187,7 +187,7 @@ const editorConfig = {
       padding: 8px 12px;
     }
     img { max-width: 100%; height: auto; }
-    video { max-width: 100%; }
+    video { max-width: 100%; height: auto; }
   `,
 
   // 粘贴配置

+ 1 - 1
code/frontend/src/views/content/index.vue

@@ -772,6 +772,6 @@ onMounted(() => {
   overflow-y: auto;
   background: #fafafa;
   :deep(img) { max-width: 100%; }
-  :deep(video) { max-width: 100%; }
+  :deep(video) { max-width: 100%; height: auto !important; }
 }
 </style>