Bladeren bron

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

第一:清理const faviconUrl = new URL('favicon.ico', import.meta.url).href
第二:
<img :src="faviconUrl" class="brand-mark" alt="HS 仓储运营台" />
改为
<img src="favicon.ico" class="brand-mark" alt="HS 仓储运营台" />
longsun.xie 8 uur geleden
bovenliggende
commit
6f99f71efe
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      src/views/Login/index.vue

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

@@ -11,7 +11,6 @@ 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 +176,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="faviconUrl" class="brand-mark" alt="HS 仓储运营台" />
+			<div class="brand login-brand"><img src="favicon.ico" class="brand-mark" alt="HS 仓储运营台" />
 				<div><strong>HS 仓储运营台</strong><small>WAREHOUSE OPS · 上海闵行仓</small></div>
 			</div>
 			<h1 id="login-title">统一身份认证</h1>