Quellcode durchsuchen

更新 'src/views/Login/index.vue'

新增第14行:const faviconUrl = new URL('favicon.ico', import.meta.url).href

<div class="brand login-brand"><img :src="`${import.meta.env.BASE_URL}favicon.ico`" class="brand-mark" alt="HS 仓储运营台" />
替换为
<div class="brand login-brand"><img :src="faviconUrl" class="brand-mark" alt="HS 仓储运营台" />
longsun.xie vor 10 Stunden
Ursprung
Commit
5019f3f678
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/views/Login/index.vue

+ 2 - 2
src/views/Login/index.vue

@@ -11,7 +11,7 @@ import {
 	getCachedOAuthState, getCachedVerifier, getOAuthLoginUrl,
 	getToken, mockLogin, setAuthInfo
 } from '../../utils/auth'
-
+const faviconUrl = new URL('favicon.ico', import.meta.url).href
 const router = useRouter()
 const busy = ref(true)
 const message = ref('正在检查登录状态...')
@@ -177,7 +177,7 @@ onMounted(async () => {
 	<MockLogin v-if="mockLogin" />
 	<div v-else class="login-screen">
 		<section class="login-panel" aria-labelledby="login-title">
-			<div class="brand login-brand"><img :src="`${import.meta.env.BASE_URL}favicon.ico`" class="brand-mark" alt="HS 仓储运营台" />
+			<div class="brand login-brand"><img :src="faviconUrl" class="brand-mark" alt="HS 仓储运营台" />
 				<div><strong>HS 仓储运营台</strong><small>WAREHOUSE OPS · 上海闵行仓</small></div>
 			</div>
 			<h1 id="login-title">统一身份认证</h1>