diff --git a/src/utils/request.js b/src/utils/request.js index 908f693..f405ed4 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -96,7 +96,11 @@ useUserStore() .logOut() .then(() => { - location.href = '/index'; + if (process.env.NODE_ENV == 'development') { + location.href = '/index'; + } else { + location.href = 'http://192.168.1.39:8132/door'; + } }); }) .catch(() => {