From 33c4e059eeb71de6f186bc4ee22e05bfd3bd5aeb Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Wed, 24 Mar 2021 18:23:45 +0800
Subject: [PATCH] 问题修复
---
src/api/system/dept.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/api/system/dept.js b/src/api/system/dept.js
index 9f8da2b..23cb899 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({
@@ -81,13 +82,15 @@
export const ss = () => {
return request({
url: '/api/blade-system/dept/selectInfo',
- method: 'post',
+ method: 'get',
})
}
// 封装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