mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
fix: ts type error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user