Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
WidgetUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WuFeiyang
WidgetUI
Commits
5e6ab4a9
Commit
5e6ab4a9
authored
5 years ago
by
WuFeiyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hardcode
parent
cdb22744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/App.vue
src/App.vue
+13
-3
No files found.
src/App.vue
View file @
5e6ab4a9
...
@@ -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
resourcetype
=
dataresponse
.
data
.
ResourceType
;
var
samplePath
=
dataresponse
.
data
.
CFET2CORE_SAMPLE_PATH
as
string
;
var
samplePath
=
dataresponse
.
data
.
CFET2CORE_SAMPLE_PATH
;
console
.
log
(
samplePath
);
this
.
addWidget
(
resourcetype
);
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
;
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
);
});
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment