move the function of switching desktop/mobile page to frontend
This commit is contained in:
+5
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user