From 908be1cb1d9ea66ad8d7ba4da5d14ea64ff4c8f5 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 30 Jan 2021 16:06:50 +0800
Subject: [PATCH] 清空real

---
 src/api/system/dept.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/api/system/dept.js b/src/api/system/dept.js
index 9f8da2b..592af3a 100644
--- a/src/api/system/dept.js
+++ b/src/api/system/dept.js
@@ -1,4 +1,5 @@
 import request from '@/router/axios';
+import Message from "element-ui/packages/message/src/main";
 
 export const getList = (current, size, params) => {
   return request({
@@ -86,8 +87,10 @@
 }
 // 封装api get请求
 export const fetch = (path, params) => {
+  let axios;
   return axios.get(path, {params: params}).then(res => {
     if (res.data.code === 403) {
+      let router;
       router.push({
         path: '/'
       });
@@ -103,4 +106,3 @@
     return Promise.reject(err);
   })
 }
-

--
Gitblit v1.9.3