Commit 5712500b authored by 李维's avatar 李维

Bug fix

parent 9b57d0db
...@@ -665,7 +665,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy { ...@@ -665,7 +665,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
} }
getURL(url: string) { getURL(url: string) {
if(url.indexOf("http")==-1 && url.indexOf("/")==-1){ if(!url && url.indexOf("http")==-1 && url.indexOf("/")==-1){
return this.assetsRoot.replace(/_PH_IMAGE_NAME_/g, url) return this.assetsRoot.replace(/_PH_IMAGE_NAME_/g, url)
} else { } else {
return url return url
......
...@@ -63,7 +63,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -63,7 +63,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item.contentObj = {}; this.item.contentObj = {};
const getData = (<any> window).courseware.getData; const getData = (<any> window).courseware.getData;
getData((data) => { getData((data) => {
// console.log("读取数据", data) console.log("读取数据", data)
if (data) { if (data) {
this.item = data; this.item = data;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment