add iconify url
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-09 09:38:44 +08:00
parent b6dc79b298
commit 7da4becf4f
4 changed files with 10 additions and 5 deletions

1
src/env.d.ts vendored
View File

@@ -3,6 +3,7 @@ interface ImportMetaEnv {
readonly PUBLIC_BASE_URL: string
readonly PUBLIC_ADMIN_URL: string
readonly PUBLIC_MAXKB_URL: string
readonly PUBLIC_ICONIFY_URL: string
}
interface ImportMeta {

View File

@@ -1,6 +1,7 @@
import { createApp } from "vue"
import { create } from "naive-ui"
import App from "./App.vue"
import { addAPIProvider } from "@iconify/vue"
//@ts-ignore
import "github-markdown-css/github-markdown-light.css"
@@ -46,3 +47,9 @@ const naive = create()
app.use(naive)
app.use(router)
app.mount("#app")
if (!!import.meta.env.PUBLIC_ICONIFY_URL) {
addAPIProvider("", {
resources: [import.meta.env.PUBLIC_ICONIFY_URL],
})
}