修复页面抽象类关于应用名称获取的问题
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
class PageBase {
|
class PageBase {
|
||||||
constructor(path, vue) {
|
constructor(path, vue) {
|
||||||
this.path = path
|
this.path = path
|
||||||
this.name = path.replace(/.*\\([^\\]+).vue/g, '$1')
|
this.name = path.replace(/.*[\\\/]([^\\\/]+)$/g, '$1')
|
||||||
this.init(vue)
|
this.init(vue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user