Jelajahi Sumber

组件移动到同一行内不同列问题

dsy 1 hari lalu
induk
melakukan
80f136a682
3 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 1 1
      .env
  2. 2 2
      package.json
  3. 2 2
      src/views/book/courseware/create/components/CreateCanvas.vue

+ 1 - 1
.env

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

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
   "name": "eep_page",
-  "version": "2026.03.02",
+  "version": "2026.03.06",
   "private": true,
   "main": "main.js",
   "description": "智慧梧桐数字教材编辑器",
@@ -85,7 +85,7 @@
   "build": {
     "appId": "com.gcls.page.textbook",
     "productName": "智慧梧桐数字教材编辑器",
-    "copyright": "Copyright © 2025 ${author}",
+    "copyright": "Copyright © 2026 ${author}",
     "asarUnpack": [
       "node_modules/7zip-bin/**"
     ],

+ 2 - 2
src/views/book/courseware/create/components/CreateCanvas.vue

@@ -1130,8 +1130,8 @@ export default {
       if (this.curRow >= -1 && this.curCol > -1 && this.curGrid <= -1) {
         // 当拖拽组件和放置位置在同一列内,且行内组件数量为 1,将 curRow 减 1,才能正确插入
         if ('col' in this.curParams) {
-          const { col, row, rowNum } = this.curParams;
-          if (col === this.curCol && row === this.curRow && rowNum === 1) {
+          const { row, rowNum } = this.curParams;
+          if (row === this.curRow && rowNum === 1) {
             this.curRow = Math.max(0, this.curRow - 1);
             this.calculateRowInsertedObject();
             return;