fixes with handling new and query modes
This commit is contained in:
parent
b72a85ac24
commit
b75aa08d7c
1 changed files with 5 additions and 3 deletions
|
@ -74,8 +74,10 @@ function Data(name, action, domain: string): object {
|
|||
// appdata and component method definitions
|
||||
|
||||
function mounted(name: string, meta: any) {
|
||||
console.log('name: ', name, ', meta: ', meta)
|
||||
this.data[name] = meta.default || eval(meta.defexpr) || ""
|
||||
if (meta.defexpr) {
|
||||
meta.default = eval(meta.defexpr)
|
||||
}
|
||||
this.data[name] = meta.default || ""
|
||||
this.meta[name] = meta
|
||||
}
|
||||
|
||||
|
@ -126,7 +128,7 @@ function handle(msg) {
|
|||
if (domain && domain != comp.domain) {
|
||||
return
|
||||
}
|
||||
if (comp != undefined) {
|
||||
if (comp) {
|
||||
Object.assign(comp.data, data)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue