Skip to content

Commit 8e9c361

Browse files
committed
Change dir
1 parent b14409d commit 8e9c361

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

web/index-m.html renamed to public/index-m.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<el-header></el-header>
1919
<el-main>
2020
<div class="body-center">
21-
<img width="300" src="./logo.png">
21+
<img width="300" src="./logo.png" @click="goToGayHub">
2222
<el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort">
2323
<el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :disabled="longUrl === ''"
2424
:loading="loading"></el-button>
@@ -30,6 +30,7 @@
3030
</div>
3131

3232
<script>
33+
const repo = 'https://github.com/CareyWang/MyUrls'
3334
const backend = 'http://example.com'
3435

3536
let app = new Vue({
@@ -71,6 +72,9 @@
7172
.finally(() => {
7273
this.loading = false;
7374
});
75+
},
76+
goToGayHub() {
77+
window.open(repo)
7478
}
7579
},
7680
})

web/index.html renamed to public/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<el-header></el-header>
1919
<el-main>
2020
<div class="body-center">
21-
<img width="300" src="./logo.png">
21+
<img width="300" src="./logo.png" @click="goToGayHub">
2222
<el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort">
2323
<el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :disabled="longUrl === ''"
2424
:loading="loading"></el-button>
@@ -30,6 +30,7 @@
3030
</div>
3131

3232
<script>
33+
const repo = 'https://github.com/CareyWang/MyUrls'
3334
const backend = 'http://example.com'
3435

3536
let app = new Vue({
@@ -71,6 +72,9 @@
7172
.finally(() => {
7273
this.loading = false;
7374
});
75+
},
76+
goToGayHub() {
77+
window.open(repo)
7478
}
7579
},
7680
})
File renamed without changes.

0 commit comments

Comments
 (0)