File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 18
18
< el-header > </ el-header >
19
19
< el-main >
20
20
< div class ="body-center ">
21
- < img width ="300 " src ="./logo.png ">
21
+ < img width ="300 " src ="./logo.png " @click =" goToGayHub " >
22
22
< el-input ref ="long " v-model ="longUrl " size ="medium " @keyup.enter.native ="enterToDoShort ">
23
23
< el-button slot ="append " icon ="el-icon-magic-stick " @click ="doShort " :disabled ="longUrl === '' "
24
24
:loading ="loading "> </ el-button >
30
30
</ div >
31
31
32
32
< script >
33
+ const repo = 'https://github.com/CareyWang/MyUrls'
33
34
const backend = 'http://example.com'
34
35
35
36
let app = new Vue ( {
71
72
. finally ( ( ) => {
72
73
this . loading = false ;
73
74
} ) ;
75
+ } ,
76
+ goToGayHub ( ) {
77
+ window . open ( repo )
74
78
}
75
79
} ,
76
80
} )
Original file line number Diff line number Diff line change 18
18
< el-header > </ el-header >
19
19
< el-main >
20
20
< div class ="body-center ">
21
- < img width ="300 " src ="./logo.png ">
21
+ < img width ="300 " src ="./logo.png " @click =" goToGayHub " >
22
22
< el-input ref ="long " v-model ="longUrl " size ="medium " @keyup.enter.native ="enterToDoShort ">
23
23
< el-button slot ="append " icon ="el-icon-magic-stick " @click ="doShort " :disabled ="longUrl === '' "
24
24
:loading ="loading "> </ el-button >
30
30
</ div >
31
31
32
32
< script >
33
+ const repo = 'https://github.com/CareyWang/MyUrls'
33
34
const backend = 'http://example.com'
34
35
35
36
let app = new Vue ( {
71
72
. finally ( ( ) => {
72
73
this . loading = false ;
73
74
} ) ;
75
+ } ,
76
+ goToGayHub ( ) {
77
+ window . open ( repo )
74
78
}
75
79
} ,
76
80
} )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments