From a10e10435ee2d6aab8e2475d8a268dd6cf8e6d28 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期五, 03 十一月 2023 14:49:43 +0800 Subject: [PATCH] feat: 接入 jwt token --- src/api/common/other.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/common/other.js b/src/api/common/other.js index 08db148..733ab2b 100644 --- a/src/api/common/other.js +++ b/src/api/common/other.js @@ -1,9 +1,11 @@ // import request from "@/common/untils/request.js" -import axios from "axios" +import request from "@/common/untils/request"; // 鏌ヨ鍏徃鍒楄〃 -export const getCompanyList = async (data) => { - return await axios.get(`/api-wms/v1/company/company`, { +export const getCompanyList = (data) => { + return request({ + url: "/api-wms/v1/company/company", + method: "get", params: data }) } -- Gitblit v1.8.0