Replace CDN with local file for website logo.

This commit is contained in:
CareyWong 2024-09-09 20:09:52 +08:00
parent b02b1ea90b
commit b7dd2bbfa8
2 changed files with 2 additions and 1 deletions

View File

@ -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{

View File

@ -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>