From 7ba0db84beb3dcaf2c9cd35f24a32a57ad470b7f Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 8 Nov 2022 18:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2=E6=8A=BD?= =?UTF-8?q?=E8=B1=A1=E7=B1=BB=E5=85=B3=E4=BA=8E=E5=BA=94=E7=94=A8=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=8E=B7=E5=8F=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/utils/PageBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/utils/PageBase.js b/src/components/utils/PageBase.js index 0dd79cd..30ee233 100644 --- a/src/components/utils/PageBase.js +++ b/src/components/utils/PageBase.js @@ -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) }