Change dir
This commit is contained in:
parent
b14409d100
commit
8e9c361536
@ -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)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -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)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Loading…
x
Reference in New Issue
Block a user