Skip to content

Commit 7980e9c

Browse files
committed
fix: ts type error
1 parent f6e67fe commit 7980e9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/stores/appearance.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { setTitle, setCurrentColor } from '@/utils/utils'
88
const basePath = import.meta.env.VITE_API_BASE_URL
99
const baseUrl = basePath + '/system/appearance/picture/'
1010
import { isBtnShow } from '@/utils/utils'
11-
import type { LinkHTMLAttributes } from 'vue'
1211
interface AppearanceState {
1312
themeColor?: string
1413
customColor?: string
@@ -311,7 +310,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
311310
})
312311

313312
const setLinkIcon = (linkWeb?: string) => {
314-
const link = document.querySelector('link[rel="icon"]') as LinkHTMLAttributes
313+
const link = document.querySelector('link[rel="icon"]') as HTMLLinkElement
315314
if (link) {
316315
if (linkWeb) {
317316
link['href'] = baseUrl + linkWeb

0 commit comments

Comments
 (0)