|
@@ -228,7 +228,7 @@ import UploadFile from './components/UploadFile.vue';
|
|
|
import AudioLine from './components/AudioLine.vue';
|
|
import AudioLine from './components/AudioLine.vue';
|
|
|
const Base64 = require('js-base64').Base64;
|
|
const Base64 = require('js-base64').Base64;
|
|
|
import { getConfig } from '@/utils/auth';
|
|
import { getConfig } from '@/utils/auth';
|
|
|
-import { H5StartupFile, GetFileURLMap } from '@/api/app';
|
|
|
|
|
|
|
+import { H5StartupFile } from '@/api/app';
|
|
|
import { GetFileStoreInfo } from '@/api/app';
|
|
import { GetFileStoreInfo } from '@/api/app';
|
|
|
|
|
|
|
|
import * as THREE from 'three';
|
|
import * as THREE from 'three';
|
|
@@ -680,10 +680,8 @@ export default {
|
|
|
this.loadModel(file.file_id);
|
|
this.loadModel(file.file_id);
|
|
|
this.initThree();
|
|
this.initThree();
|
|
|
} else {
|
|
} else {
|
|
|
- GetFileURLMap({ file_id_list: [file.file_id] }).then(({ url_map }) => {
|
|
|
|
|
- this.newpath = `${this.file_preview_url}onlinePreview?url=${Base64.encode(url_map[file.file_id])}`;
|
|
|
|
|
- this.visible = true;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ this.newpath = `${this.file_preview_url}onlinePreview?url=${Base64.encode(file.file_url)}`;
|
|
|
|
|
+ this.visible = true;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
initThree() {
|
|
initThree() {
|