mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
add switch to desktop/mobile link
This commit is contained in:
@@ -16,3 +16,18 @@ export function getVersion() {
|
||||
export function getBuildTime() {
|
||||
return __EZBOOKKEEPING_BUILD_UNIX_TIME__; // eslint-disable-line
|
||||
}
|
||||
|
||||
export function getMobileVersionPath() {
|
||||
if (isProduction()) {
|
||||
return '../mobile';
|
||||
} else {
|
||||
return 'mobile.html';
|
||||
}
|
||||
}
|
||||
export function getDesktopVersionPath() {
|
||||
if (isProduction()) {
|
||||
return '../desktop';
|
||||
} else {
|
||||
return 'desktop.html';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user