-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmain.js
More file actions
24 lines (21 loc) · 5.04 KB
/
main.js
File metadata and controls
24 lines (21 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import app from './app.ui'
let options = {
app: app,
i18n: {
locale: 'zh-cn',
components: require('./i18n/components.json'),
messages: {
'zh-cn': require('./i18n/zh-cn.json'),
'en': require('./i18n/en.json')
}
}
}
ui.extend({
sayHello:function(){
console.log('hello')
}
})
ui.start(options)
ui.preloadDialogs([
require('#/pages/dialogs/loginInterface.ui')
])