Skip to content

Commit

Permalink
fix: 修复自定义SSO自动升级版本出错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Mar 8, 2022
1 parent e1c8063 commit a3d950e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions electron/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/components/RightBottom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a3d950e

Please sign in to comment.