Change dir

This commit is contained in:
CareyWong 2020-03-27 21:33:45 +08:00
parent b14409d100
commit 8e9c361536
3 changed files with 10 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<el-header></el-header> <el-header></el-header>
<el-main> <el-main>
<div class="body-center"> <div class="body-center">
<img width="300" src="./logo.png"> <img width="300" src="./logo.png" @click="goToGayHub">
<el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort"> <el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort">
<el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :disabled="longUrl === ''" <el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :disabled="longUrl === ''"
:loading="loading"></el-button> :loading="loading"></el-button>
@ -30,6 +30,7 @@
</div> </div>
<script> <script>
const repo = 'https://github.com/CareyWang/MyUrls'
const backend = 'http://example.com' const backend = 'http://example.com'
let app = new Vue({ let app = new Vue({
@ -71,6 +72,9 @@
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;
}); });
},
goToGayHub() {
window.open(repo)
} }
}, },
}) })

View File

@ -18,7 +18,7 @@
<el-header></el-header> <el-header></el-header>
<el-main> <el-main>
<div class="body-center"> <div class="body-center">
<img width="300" src="./logo.png"> <img width="300" src="./logo.png" @click="goToGayHub">
<el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort"> <el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort">
<el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :disabled="longUrl === ''" <el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :disabled="longUrl === ''"
:loading="loading"></el-button> :loading="loading"></el-button>
@ -30,6 +30,7 @@
</div> </div>
<script> <script>
const repo = 'https://github.com/CareyWang/MyUrls'
const backend = 'http://example.com' const backend = 'http://example.com'
let app = new Vue({ let app = new Vue({
@ -71,6 +72,9 @@
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;
}); });
},
goToGayHub() {
window.open(repo)
} }
}, },
}) })

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB