调整读取顺序
This commit is contained in:
@@ -6,6 +6,10 @@ class PageBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init(vue) {
|
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)) {
|
if (/customNavigation/.test(vue)) {
|
||||||
this.style = {navigationStyle: "custom"}
|
this.style = {navigationStyle: "custom"}
|
||||||
} else {
|
} else {
|
||||||
@@ -27,10 +31,6 @@ class PageBase {
|
|||||||
// this.style.backgroundColor = vue.replace(/[\s\S]*(backgroundColor:.+),[\s\S]*/gm, '$1')
|
// 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) {
|
setLabel(name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user