Vue wrote two projects on mobile and PC, how to jump to different addresses according to different devices by accessing the same address

vue writes about two projects on mobile and PC. How to jump to different addresses according to different devices by visiting the same address
PC access jump to PC project
mobile access jump to mobile
seek advice? how to configure it in the vue project? -sharp-sharp-sharp problem description

the environmental background of the problems and what methods you have tried

if you write a judgment in app.vue or main.js or index.html, every time you refresh the browser, the project will be reloaded. No matter what page the browser refreshes, the browser will return to the default routing page. If you want to refresh the browser, you will still get the current page

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Mar.15,2022

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
    // 
}

has the landlord realized it?


the front-end page can intercept the jump before it is loaded, but for the sake of speed, you can intercept the jump on the nginx

.
Menu