直接引入http.js的router就好了 import router from "@/router/index.ts"//使用if (error.response) { console.log("status:" + error.response.status)...