优化界面展示

This commit is contained in:
mgw
2023-08-16 09:42:51 +08:00
parent 4a5fb0c6e4
commit 06ed10bd5e
2 changed files with 28 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ import { Component, onWillUpdateProps, useState, useRef, useEffect } from "@odoo
export class StepViewer extends Component {
setup() {
console.log('setup')
this.props.url = this.formatUrl();
}
@@ -33,9 +34,11 @@ export class StepViewer extends Component {
id: JSON.stringify(this.props.record.data['id']),
field: this.props.name}
url = url_props['base_url']+'/web/content/'+url_props['model']+'/'+url_props['id']+'/'+url_props['field']+'?download=true'
console.log('url', url)
} else {
url = "data:model/gltf-binary;base64," + this.props.value;
console.log('url222', url)
}
}
return url