diff --git a/src/components/utils/PageBase.js b/src/components/utils/PageBase.js index ad7c600..acab687 100644 --- a/src/components/utils/PageBase.js +++ b/src/components/utils/PageBase.js @@ -6,6 +6,10 @@ class PageBase { } init(vue) { + if (/appName/.test(vue)) { + let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1') + this.label = appName.replace(/(appName:|["'])/g, '')?.trim() + } if (/customNavigation/.test(vue)) { this.style = {navigationStyle: "custom"} } else { @@ -27,10 +31,6 @@ class PageBase { // this.style.backgroundColor = vue.replace(/[\s\S]*(backgroundColor:.+),[\s\S]*/gm, '$1') // } } - if (/appName/.test(vue)) { - let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1') - this.label = appName.replace(/(appName:|["'])/g, '')?.trim() - } } setLabel(name) {