提交 6ef0f404 编写于 作者: Z zhongjianfei

zhongjianfei@huawei.com

Signed-off-by: Nzhongjianfei <zhongjianfei@huawei.com>
Change-Id: I291b1ea545d6ecb2bd58318791a98d7afcaa6e8c
上级 ff5e9288
......@@ -20,7 +20,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
var once = true
export default {
data: {
title: ""
......@@ -29,19 +29,22 @@ export default {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend)
core.init()
if (once) {
once = false
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
configService.setConfig(this)
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
require('../../../test/List.test')
core.execute()
}
},
onReady() {
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册