File tree 2 files changed +4
-2
lines changed
uni-h5/src/framework/components/async-error
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,9 @@ function generatePagesDefineCode(
236
236
if(async.error){
237
237
AsyncComponentOptions.errorComponent = {
238
238
name:'SystemAsyncError',
239
+ props:['error'],
239
240
render(){
240
- return createVNode(resolveComponent(async.error))
241
+ return createVNode(resolveComponent(async.error), { error: this.error } )
241
242
}
242
243
}
243
244
}
Original file line number Diff line number Diff line change 1
1
import { defineSystemComponent } from '@dcloudio/uni-components'
2
- import { useI18n , initI18nAsyncMsgsOnce } from '@dcloudio/uni-core'
2
+ import { initI18nAsyncMsgsOnce , useI18n } from '@dcloudio/uni-core'
3
3
4
4
function reload ( ) {
5
5
window . location . reload ( )
6
6
}
7
7
8
8
export default /*#__PURE__*/ defineSystemComponent ( {
9
9
name : 'AsyncError' ,
10
+ props : [ 'error' ] ,
10
11
setup ( ) {
11
12
initI18nAsyncMsgsOnce ( )
12
13
const { t } = useI18n ( )
You can’t perform that action at this time.
0 commit comments