Skip to content

Commit

Permalink
refactor(cli/site): restore
Browse files Browse the repository at this point in the history
affects: @varlet/cli
  • Loading branch information
haoziqaq committed Apr 6, 2021
1 parent 28f6131 commit 524caa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/varlet-cli/site/pc/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ export default defineComponent({
path.value = componentValue
if (isPhone.value) {
window.location.href = `./mobile.html#/${componentValue}?language=${languageValue}&platform=pc&path=${componentValue}`
window.location.href = `./mobile.html#/${componentValue || 'home'}?language=${
languageValue || 'zh-CN'
}&platform=mobile&path=${componentValue || 'home'}`
}
}
Expand Down

0 comments on commit 524caa9

Please sign in to comment.