抽取页面对象类
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user