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
+6
View File
@@ -92,6 +92,8 @@
<f7-toggle :checked="isEnableAnimate" @toggle:change="isEnableAnimate = $event"></f7-toggle>
</f7-list-item>
<f7-list-item external :title="$t('Switch to Desktop Version')" :link="desktopVersionPath"></f7-list-item>
<f7-list-item :title="$t('About')" link="/about" :after="version"></f7-list-item>
</f7-list>
</f7-page>
@@ -105,6 +107,7 @@ import { useUserStore } from '@/stores/user.js';
import { useExchangeRatesStore } from '@/stores/exchangeRates.js';
import currencyConstants from '@/consts/currency.js';
import { getDesktopVersionPath } from '@/lib/version.js';
export default {
props: [
@@ -123,6 +126,9 @@ export default {
version() {
return 'v' + this.$version;
},
desktopVersionPath() {
return getDesktopVersionPath();
},
allTimezones() {
return this.$locale.getAllTimezones(true);
},