Skip to content

Commit

Permalink
fix(vercel): fix dashboard waline config serverURL error with pathname
Browse files Browse the repository at this point in the history
fix #85
  • Loading branch information
lizheming committed Dec 21, 2020
1 parent 1d24c19 commit 9bb9385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = class extends think.Controller {
new Waline({
el: '#waline',
path: '/',
serverURL: location.protocol + '//' + location.host + location.pathname.slice(1)
serverURL: location.protocol + '//' + location.host + location.pathname.replace(/\/+$/, '')
});
</script>
</body>
Expand Down

0 comments on commit 9bb9385

Please sign in to comment.