Skip to content

Commit

Permalink
fix: preview url
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Dec 27, 2024
1 parent 7618478 commit 5774bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/js/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const open = (params = {}) => {

openUrl = isDevelopEnv
? `./preview.html?tenant=${tenant}#${hashString}`
: `${href}preview?tenant=${tenant}#${hashString}`
: `${href}${href.endsWith('/') ? '' : '/'}preview?tenant=${tenant}#${hashString}`

const aTag = document.createElement('a')
aTag.href = openUrl
Expand Down

0 comments on commit 5774bde

Please sign in to comment.