调整读取顺序

This commit is contained in:
aixianling
2023-03-20 09:28:05 +08:00
parent 11395c003f
commit 5ea84f0c5f

View File

@@ -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) {