add switch to desktop/mobile link

This commit is contained in:
MaysWind
2023-06-24 19:30:28 +08:00
parent 0efe617c03
commit 1c39819112
5 changed files with 53 additions and 16 deletions
+15
View File
@@ -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';
}
}