Replace CDN with local file for website logo.
This commit is contained in:
parent
b02b1ea90b
commit
b7dd2bbfa8
1
main.go
1
main.go
@ -96,6 +96,7 @@ func run() {
|
||||
|
||||
// static files
|
||||
router.LoadHTMLGlob("public/*.html")
|
||||
router.StaticFile("/logo.png", "public/logo.png")
|
||||
|
||||
router.GET("/", func(context *gin.Context) {
|
||||
context.HTML(http.StatusOK, "index.html", gin.H{
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<el-header></el-header>
|
||||
<el-main>
|
||||
<div :class="[isPc ? 'body-center body-width-pc' : 'body-center body-width-mb']">
|
||||
<img width="300" src="https://cdn.jsdelivr.net/gh/CareyWang/MyUrls@master/public/logo.png" @click="goToGayHub">
|
||||
<img width="300" src="/logo.png" @click="goToGayHub">
|
||||
<el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort">
|
||||
<el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :loading="loading"></el-button>
|
||||
</el-input>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user