Browse Source

背景设置优化

dsy 2 days ago
parent
commit
6643896b0f

+ 1 - 1
.env

@@ -11,4 +11,4 @@ VUE_APP_BookWebSI = '/GCLSBookWebSI/ServiceInterface'
 VUE_APP_EepServer = '/EEPServer/SI'
 
 #version
-VUE_APP_VERSION = '2026.05.04'
+VUE_APP_VERSION = '2026.05.06'

+ 0 - 1
src/views/book/courseware/data/divider.js

@@ -1,6 +1,5 @@
 export function getDividerData() {
   return {
-    id: '',
     type: 'divider',
     title: '分割线',
     property: {

+ 2 - 1
src/views/book/courseware/preview/CoursewarePreview.vue

@@ -640,7 +640,6 @@ export default {
         backgroundSize: bcImgUrl ? `${pos.width}% ${pos.height}%` : '',
         backgroundPosition: bcImgUrl ? `${pos.left}% ${pos.top}%` : '',
         backgroundImage: bcImgUrl ? `url(${bcImgUrl})` : '',
-        backgroundColor: bcImgUrl ? `rgba(255, 255, 255, ${1 - back?.image_opacity / 100})` : '',
       };
 
       if (back) {
@@ -674,6 +673,8 @@ export default {
 
         if (back.has_color) {
           canvasStyle['backgroundColor'] = back.color;
+        } else {
+          canvasStyle['backgroundColor'] = '#fff';
         }
 
         if (back.enable_border) {