mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
fix: 修复自定义SSO自动升级版本出错的问题
This commit is contained in:
parent
e1c80636ba
commit
a3d950e2a3
1
electron/build.js
vendored
1
electron/build.js
vendored
@ -45,6 +45,7 @@ function startBuild(data, publish) {
|
||||
title: data.name,
|
||||
version: config.version,
|
||||
origin: "./",
|
||||
homeUrl: utils.formatUrl(data.url),
|
||||
apiUrl: utils.formatUrl(data.url) + "api/",
|
||||
}
|
||||
// drawio
|
||||
|
||||
@ -185,7 +185,7 @@ export default {
|
||||
},
|
||||
|
||||
chackReleases() {
|
||||
let hostName = $A.getDomain(window.systemInfo.apiUrl);
|
||||
let hostName = $A.getDomain(window.systemInfo.homeUrl || window.systemInfo.apiUrl);
|
||||
if (hostName == "" || $A.leftExists(hostName, '127.0.0.1')) {
|
||||
hostName = "public"
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<script src="{{ asset_main('js/scroll-into-view.min.js') }}"></script>
|
||||
<script>
|
||||
window.csrfToken = { csrfToken : "{{ csrf_token() }}" };
|
||||
window.systemInfo = { title: "{{config('app.name', 'WebPage')}}", version : "{{ $version }}", origin: window.location.origin + "/", apiUrl: null };
|
||||
window.systemInfo = { title: "{{config('app.name', 'WebPage')}}", version : "{{ $version }}", origin: window.location.origin + "/", homeUrl: null, apiUrl: null };
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user