任一存 hace 2 años
padre
commit
d2a112aabc

+ 6 - 0
packages/qjkankan-editor/src/utils/file.js

@@ -108,16 +108,22 @@ export const blobToBase64 = function (blob) {
  */
 export const getImgWH = (file) => {
   return new Promise((resolve) => {
+    // console.log(1);
     var reader = new FileReader()
     //读取图片文件
+    // console.log(2);
     reader.readAsDataURL(file)
+    // console.log(3);
     reader.onload = function (e) {
       //初始化JavaScript图片对象
+      // console.log(4);
       var image = new Image()
       //FileReader获得Base64字符串
       image.src = e.target.result
+      // console.log(5);
       image.onload = function () {
         //获得图片高宽
+        // console.log(6);
         var height = this.height
         var width = this.width
         resolve({

+ 2 - 2
packages/qjkankan-editor/src/views/material/audio/index.vue

@@ -389,7 +389,7 @@ export default {
         this.delFolder(item.id, (lastestUsedSearchKey) => {
           getMaterialList(
             {
-              dir: this.currentFolderId,
+              dirId: this.currentFolderId,
               pageNum: this.list.length,
               pageSize: 1,
               searchKey: this.searchKey,
@@ -435,7 +435,7 @@ export default {
               const lastestUsedSearchKey = this.searchKey
               getMaterialList(
                 {
-                  dir: this.currentFolderId,
+                  dirId: this.currentFolderId,
                   pageNum: this.list.length,
                   pageSize: 1,
                   searchKey: this.searchKey,

+ 3 - 3
packages/qjkankan-editor/src/views/material/pano/index.vue

@@ -430,7 +430,7 @@ export default {
                 const lastestUsedSearchKey = this.searchKey
                 getMaterialList(
                   {
-                    dir: this.currentFolderId,
+                    dirId: this.currentFolderId,
                     pageNum: index + 1,
                     pageSize: 1,
                     type: TYPE,
@@ -501,7 +501,7 @@ export default {
         this.delFolder(item.id, (lastestUsedSearchKey) => {
           getMaterialList(
             {
-              dir: this.currentFolderId,
+              dirId: this.currentFolderId,
               pageNum: this.list.length,
               pageSize: 1,
               searchKey: this.searchKey,
@@ -549,7 +549,7 @@ export default {
               const lastestUsedSearchKey = this.searchKey
               getMaterialList(
                 {
-                  dir: this.currentFolderId,
+                  dirId: this.currentFolderId,
                   pageNum: this.list.length,
                   pageSize: 1,
                   searchKey: this.searchKey,

+ 2 - 2
packages/qjkankan-editor/src/views/material/video/index.vue

@@ -393,7 +393,7 @@ export default {
         this.delFolder(item.id, (lastestUsedSearchKey) => {
           getMaterialList(
             {
-              dir: this.currentFolderId,
+              dirId: this.currentFolderId,
               pageNum: this.list.length,
               pageSize: 1,
               searchKey: this.searchKey,
@@ -439,7 +439,7 @@ export default {
               const lastestUsedSearchKey = this.searchKey
               getMaterialList(
                 {
-                  dir: this.currentFolderId,
+                  dirId: this.currentFolderId,
                   pageNum: this.list.length,
                   pageSize: 1,
                   searchKey: this.searchKey,