fix: add dcLib to globals
This commit is contained in:
parent
39762b36c6
commit
5d93346b52
@ -46,6 +46,7 @@ export const initFilter: { filter: FilterCache } = {
|
||||
*/
|
||||
export const globals: {
|
||||
rootParam: string
|
||||
dcLib: string
|
||||
editor: any
|
||||
viewer: any
|
||||
viewboxes: ViewboxCache
|
||||
@ -57,6 +58,7 @@ export const globals: {
|
||||
[key: string]: any
|
||||
} = {
|
||||
rootParam: <string>'',
|
||||
dcLib: '',
|
||||
editor: {
|
||||
startupSet: <boolean>false,
|
||||
treeNodeLibraries: <any[] | null>[],
|
||||
@ -64,7 +66,7 @@ export const globals: {
|
||||
libraries: <string[] | undefined>[],
|
||||
library: <string>'',
|
||||
table: <string>'',
|
||||
xlmaps: <string[] | undefined>[],
|
||||
xlmaps: <string[]>[],
|
||||
filter: <FilterCache>{
|
||||
cols: <any[]>[],
|
||||
vals: <any[]>[],
|
||||
|
@ -137,11 +137,12 @@ export class AppService {
|
||||
}
|
||||
|
||||
globals.editor.xlmaps = res.xlmaps.map((xlmap: any) => xlmap[0])
|
||||
|
||||
globals.editor.treeNodeLibraries = treeNodeLibraries
|
||||
globals.editor.libraries = libraries
|
||||
globals.editor.startupSet = true
|
||||
|
||||
globals.dcLib = res.globvars[0].DCLIB
|
||||
|
||||
await this.licenceService.activation(res)
|
||||
})
|
||||
.catch((err: any) => {
|
||||
|
Loading…
Reference in New Issue
Block a user