I would like to ask how to get the routing object in api/index.js in nuxt, so as to realize the page jump when the interface is wrong.

    src
        api
            index.js

how to get the router object in index.js? Put it in middleware and feel that every time you switch pages, you follow the code of api. Something is wrong. Should it be realized?

Mar.22,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bea603-319f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bea603-319f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?