mirror of
https://github.com/kuaifan/dootask.git
synced 2026-04-05 04:00:09 +00:00
no message
This commit is contained in:
parent
c7ea7b057c
commit
4aa865a60f
1
electron/build.js
vendored
1
electron/build.js
vendored
@ -559,6 +559,7 @@ async function startBuild(data) {
|
|||||||
origin: "./",
|
origin: "./",
|
||||||
homeUrl: utils.formatUrl(data.url),
|
homeUrl: utils.formatUrl(data.url),
|
||||||
apiUrl: utils.formatUrl(data.url) + "api/",
|
apiUrl: utils.formatUrl(data.url) + "api/",
|
||||||
|
routeMode: "hash",
|
||||||
}
|
}
|
||||||
// information
|
// information
|
||||||
if (data.id === 'app') {
|
if (data.id === 'app') {
|
||||||
|
|||||||
2
resources/assets/js/app.js
vendored
2
resources/assets/js/app.js
vendored
@ -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});
|
const router = new VueRouter({mode: routeMode, routes});
|
||||||
|
|
||||||
// 进度条配置
|
// 进度条配置
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user