feat: 客服
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user