fix: ts type error

This commit is contained in:
dataeaseShu
2025-11-27 17:02:44 +08:00
committed by dataeaseShu
parent f6e67feb01
commit 955c9becbf
+1 -2
View File
@@ -8,7 +8,6 @@ import { setTitle, setCurrentColor } from '@/utils/utils'
const basePath = import.meta.env.VITE_API_BASE_URL
const baseUrl = basePath + '/system/appearance/picture/'
import { isBtnShow } from '@/utils/utils'
import type { LinkHTMLAttributes } from 'vue'
interface AppearanceState {
themeColor?: string
customColor?: string
@@ -311,7 +310,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
})
const setLinkIcon = (linkWeb?: string) => {
const link = document.querySelector('link[rel="icon"]') as LinkHTMLAttributes
const link = document.querySelector('link[rel="icon"]') as HTMLLinkElement
if (link) {
if (linkWeb) {
link['href'] = baseUrl + linkWeb