抽取页面对象类

This commit is contained in:
aixianling
2022-11-03 18:30:09 +08:00
parent ab6db00a54
commit 9bf7e55528

View File

@@ -1,4 +1,4 @@
export default class PageBase {
class PageBase {
constructor(path, vue) {
this.path = path
this.name = path.replace(/.*\\([^\\]+).vue/g, '$1')
@@ -33,3 +33,5 @@ export default class PageBase {
}
}
}
module.exports = PageBase