move the function of switching desktop/mobile page to frontend

This commit is contained in:
MaysWind
2021-05-30 21:48:12 +08:00
parent 9c50fad6af
commit f076513214
8 changed files with 75 additions and 21 deletions
+5 -1
View File
@@ -5,7 +5,11 @@
<script>
export default {
created() {
location.href = '../mobile/'
if (process.env.NODE_ENV === 'production') {
window.location.replace('../mobile/');
} else {
window.location.replace('../mobile.html');
}
}
}
</script>