修复页面抽象类关于应用名称获取的问题

This commit is contained in:
aixianling
2022-11-08 18:22:56 +08:00
parent 77755d0298
commit 7ba0db84be

View File

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