mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
show confirm dialog before switching to desktop version
This commit is contained in:
@@ -1905,6 +1905,7 @@
|
|||||||
"You can scan the QR code below on your mobile device.": "You can scan the QR code below on your mobile device.",
|
"You can scan the QR code below on your mobile device.": "You can scan the QR code below on your mobile device.",
|
||||||
"Switch to Mobile Version": "Switch to Mobile Version",
|
"Switch to Mobile Version": "Switch to Mobile Version",
|
||||||
"Switch to Desktop Version": "Switch to Desktop Version",
|
"Switch to Desktop Version": "Switch to Desktop Version",
|
||||||
|
"Are you sure you want to switch to desktop version?": "Are you sure you want to switch to desktop version?",
|
||||||
"About": "About",
|
"About": "About",
|
||||||
"Build Time": "Build Time",
|
"Build Time": "Build Time",
|
||||||
"Official Website": "Official Website",
|
"Official Website": "Official Website",
|
||||||
|
|||||||
@@ -1905,6 +1905,7 @@
|
|||||||
"You can scan the QR code below on your mobile device.": "Bạn có thể quét mã QR bên dưới trên thiết bị di động của mình.",
|
"You can scan the QR code below on your mobile device.": "Bạn có thể quét mã QR bên dưới trên thiết bị di động của mình.",
|
||||||
"Switch to Mobile Version": "Chuyển sang phiên bản di động",
|
"Switch to Mobile Version": "Chuyển sang phiên bản di động",
|
||||||
"Switch to Desktop Version": "Chuyển sang phiên bản máy tính để bàn",
|
"Switch to Desktop Version": "Chuyển sang phiên bản máy tính để bàn",
|
||||||
|
"Are you sure you want to switch to desktop version?": "Are you sure you want to switch to desktop version?",
|
||||||
"About": "Giới thiệu",
|
"About": "Giới thiệu",
|
||||||
"Build Time": "Thời gian xây dựng",
|
"Build Time": "Thời gian xây dựng",
|
||||||
"Official Website": "Trang web chính thức",
|
"Official Website": "Trang web chính thức",
|
||||||
|
|||||||
@@ -1905,6 +1905,7 @@
|
|||||||
"You can scan the QR code below on your mobile device.": "您可以在您的移动设备上扫描下方二维码。",
|
"You can scan the QR code below on your mobile device.": "您可以在您的移动设备上扫描下方二维码。",
|
||||||
"Switch to Mobile Version": "切换到移动版",
|
"Switch to Mobile Version": "切换到移动版",
|
||||||
"Switch to Desktop Version": "切换到桌面版",
|
"Switch to Desktop Version": "切换到桌面版",
|
||||||
|
"Are you sure you want to switch to desktop version?": "您确定要切换到桌面版?",
|
||||||
"About": "关于",
|
"About": "关于",
|
||||||
"Build Time": "编译时间",
|
"Build Time": "编译时间",
|
||||||
"Official Website": "官方网站",
|
"Official Website": "官方网站",
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
<f7-toggle :checked="isEnableAnimate" @toggle:change="isEnableAnimate = $event"></f7-toggle>
|
<f7-toggle :checked="isEnableAnimate" @toggle:change="isEnableAnimate = $event"></f7-toggle>
|
||||||
</f7-list-item>
|
</f7-list-item>
|
||||||
|
|
||||||
<f7-list-item external :title="$t('Switch to Desktop Version')" :link="desktopVersionPath"></f7-list-item>
|
<f7-list-item :title="$t('Switch to Desktop Version')" @click="switchToDesktopVersion"></f7-list-item>
|
||||||
|
|
||||||
<f7-list-item :title="$t('About')" link="/about" :after="version"></f7-list-item>
|
<f7-list-item :title="$t('About')" link="/about" :after="version"></f7-list-item>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
@@ -101,9 +101,6 @@ export default {
|
|||||||
version() {
|
version() {
|
||||||
return 'v' + this.$version;
|
return 'v' + this.$version;
|
||||||
},
|
},
|
||||||
desktopVersionPath() {
|
|
||||||
return getDesktopVersionPath();
|
|
||||||
},
|
|
||||||
allTimezones() {
|
allTimezones() {
|
||||||
return this.$locale.getAllTimezones(true);
|
return this.$locale.getAllTimezones(true);
|
||||||
},
|
},
|
||||||
@@ -204,6 +201,11 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
switchToDesktopVersion() {
|
||||||
|
this.$confirm('Are you sure you want to switch to desktop version?', () => {
|
||||||
|
window.location.replace(getDesktopVersionPath());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user