no message

This commit is contained in:
kuaifan 2025-05-28 07:23:20 +08:00
parent c7ea7b057c
commit 4aa865a60f
2 changed files with 18 additions and 17 deletions

1
electron/build.js vendored
View File

@ -559,6 +559,7 @@ async function startBuild(data) {
origin: "./",
homeUrl: utils.formatUrl(data.url),
apiUrl: utils.formatUrl(data.url) + "api/",
routeMode: "hash",
}
// information
if (data.id === 'app') {

View File

@ -77,7 +77,7 @@ VueRouter.prototype.push = function push(location) {
}
// 路由方式
const routeMode = isSoftware && !/https?:/i.test(window.location.protocol) ? 'hash' : 'history';
const routeMode = (window && window.systemInfo && window.systemInfo.routeMode === 'hash') ? 'hash' : 'history';
const router = new VueRouter({mode: routeMode, routes});
// 进度条配置