调整读取顺序
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user