File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/VueJsTsWebcamAspNetCoreSample/src/components Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -67,22 +67,24 @@ export default class Hello extends Vue {
67
67
68
68
var md : MediaDevices = this . getMediaDevices ( ) ;
69
69
md . getUserMedia ( { video : true } )
70
- . then ( ( stream ) => {
70
+ . then ( ( stream : MediaStream ) => {
71
71
this . src = window . URL . createObjectURL ( stream ) ;
72
72
this . _stream = stream ;
73
73
this . _hasUserMedia = true ;
74
- } , ( err ) => {
74
+ } , ( err : any ) => {
75
75
console . log ( err ) ;
76
76
} ) ;
77
77
}
78
78
79
79
created ( ) : void {
80
80
axios
81
81
. get ( "/api/hello" )
82
- . then ( ( res ) => {
82
+ . then ( ( res : any ) => {
83
83
this . msg = res . data . message ;
84
84
} )
85
- . catch ( ( ex ) => console . log ( ex ) ) ;
85
+ . catch ( ( err : any ) => {
86
+ console . log ( err ) ;
87
+ } ) ;
86
88
}
87
89
88
90
beforeDestroy ( ) : void {
You can’t perform that action at this time.
0 commit comments