This commit is contained in:
yanran200730
2022-11-08 18:39:26 +08:00

View File

@@ -1,7 +1,7 @@
class PageBase {
constructor(path, vue) {
this.path = path
this.name = path.replace(/.*\\([^\\]+).vue/g, '$1')
this.name = path.replace(/.*[\\\/]([^\\\/]+)$/g, '$1')
this.init(vue)
}