From b46f8c4e69c7c6ba4f2dd14ad474153a1b38559a Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Wed, 18 Mar 2020 21:56:14 +0800 Subject: [PATCH] fix(cli): incorrect simulator path when have html ext (#5849) --- packages/vant-cli/site/desktop/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant-cli/site/desktop/App.vue b/packages/vant-cli/site/desktop/App.vue index b633671c8..6e7cbc46f 100644 --- a/packages/vant-cli/site/desktop/App.vue +++ b/packages/vant-cli/site/desktop/App.vue @@ -23,7 +23,7 @@ export default { }, data() { - const path = location.pathname.replace('/index', '/'); + const path = location.pathname.replace(/\/index(\.html)?/, '/'); return { packageVersion,