feat: 客服

This commit is contained in:
2026-07-20 15:31:52 +08:00
parent 0099ccaa60
commit 82a8043578
23 changed files with 5071 additions and 360 deletions
+17
View File
@@ -38,6 +38,23 @@ import { createI18n } from 'vue-i18n'
const i18n = createI18n(i18nConfig)
export function createApp() {
const app = createSSRApp(App)
// #ifdef H5
app.component('AsyncError', {
props: ['error'],
mounted() {
console.error('[AsyncPageError]', this.error)
},
render() {
const detail = import.meta.env.DEV && this.error
? `:${this.error.message || String(this.error)}`
: ''
return h('div', {
class: 'uni-async-error',
onClick: () => window.location.reload()
}, `页面加载失败${detail},点击屏幕重试`)
}
})
// #endif
// #ifndef MP-WEIXIN
app.use(VueClipboard);
// #endif