Vue jumps to a non-vue page and then jumps back

The

website was originally written by jq. For seo, I wrote the home page with vue"s nuxt.js. How can nuxt jump to the previous jq page and come back?

the current situation is that under the same domain name, the home page is vue, but other pages do not use vue, that is, there is no packaging, so you can"t jump out or jump back. The 404 general page of vue will be displayed as soon as you jump, because there is no package in vue

.
Apr.22,2022

just jump to native js directly, for example, location.href = 'https://yugasun.com';


since it's not in the same packaged file, you need to figure out the file directory hierarchy between Vue pages and other non-Vue pages. Then use the native JS that is said upstairs to jump, and there are many ways to jump, depending on your needs. For example, if your Vue home page is in the outermost layer, and the other pages are in a pages folder, just location.assign ('pages/xxx.html') directly, and it's the same with jumping back.

Menu