Commit 5e6ab4a9 authored by WuFeiyang's avatar WuFeiyang

hardcode

parent cdb22744
...@@ -137,9 +137,19 @@ export default class App extends Vue { ...@@ -137,9 +137,19 @@ export default class App extends Vue {
} }
}) })
.then(dataresponse => { .then(dataresponse => {
var samplePath = dataresponse.data.CFET2CORE_SAMPLE_PATH as string;
console.log(samplePath);
samplePath = samplePath.slice(samplePath.lastIndexOf('/')+1);
console.log(samplePath);
if(samplePath.startsWith("data")|| samplePath.startsWith("Data"))
{
console.log("success");
this.addWidget("WaveView");
}
else{
var resourcetype = dataresponse.data.ResourceType; var resourcetype = dataresponse.data.ResourceType;
var samplePath = dataresponse.data.CFET2CORE_SAMPLE_PATH;
this.addWidget(resourcetype); this.addWidget(resourcetype);
}
var tempRef = (this.lastWidgetIndex - 1).toString(); var tempRef = (this.lastWidgetIndex - 1).toString();
this.pokeAndUpdateUI(tempRef, dataresponse.data); this.pokeAndUpdateUI(tempRef, dataresponse.data);
}); });
......
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