fix(cli): incorrect simulator path when have html ext (#5849)

This commit is contained in:
chenjiahan 2020-03-18 21:56:14 +08:00
parent 3c3390c4fd
commit b46f8c4e69

View File

@ -23,7 +23,7 @@ export default {
}, },
data() { data() {
const path = location.pathname.replace('/index', '/'); const path = location.pathname.replace(/\/index(\.html)?/, '/');
return { return {
packageVersion, packageVersion,