fix(avatar): bundle uni bridge and add favicon

This commit is contained in:
stefanfeng
2026-08-25 17:19:30 +08:00
parent e24e89d326
commit 4029c31ed7
6 changed files with 28 additions and 2 deletions
+4
View File
@@ -1,4 +1,5 @@
import { createApp } from 'vue'
import uniWebView from '@dcloudio/uni-webview-js'
import App from './App.vue'
import router from './router'
import pinia from './store'
@@ -7,6 +8,9 @@ import { useAvatarStore } from '@/store/avatar'
import { useUserStore } from '@/store/user'
import { setAuthToken } from '@/api'
// Bundle the bridge locally so the H5 does not depend on an external CDN.
;(window as any).uni = (window as any).uni || uniWebView
const app = createApp(App)
app.use(router)
app.use(pinia)
+4
View File
@@ -0,0 +1,4 @@
declare module '@dcloudio/uni-webview-js' {
const uniWebView: unknown
export default uniWebView
}