mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 12:42:51 +00:00
fix: 修复应用地址转换不正确的问题
This commit is contained in:
parent
f1cfba3ad8
commit
c3ac7dd1ab
1
resources/assets/js/store/actions.js
vendored
1
resources/assets/js/store/actions.js
vendored
@ -4682,6 +4682,7 @@ export default {
|
||||
}
|
||||
const serverLocation = new URL($A.mainUrl(''))
|
||||
data.url = data.url
|
||||
.replace(/^\/+/, '')
|
||||
.replace(/^\:(\d+)/ig, (_, port) => {
|
||||
return serverLocation.protocol + '//' + serverLocation.hostname + ':' + port;
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user