From 72fc773458ffa0cf6d9b1bfa70809bcb08b8b2c0 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 19 Jan 2024 17:35:16 +0800 Subject: [PATCH] 1 --- .env.development | 1 + .env.production | 1 + src/api/other/index.js | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 src/api/other/index.js diff --git a/.env.development b/.env.development index b6a84a2..badbb00 100644 --- a/.env.development +++ b/.env.development @@ -4,3 +4,4 @@ ENV='development' # base api VUE_APP_BASE_API=http://diaoling-test.ali251.langye.net/ VUE_APP_UPLOAD_API=http://diaoling-test.ali251.langye.net/api/admin/upload-file +VUE_APP_OA_URL=http://suzhouhedaooa.langye.net diff --git a/.env.production b/.env.production index f7d4a19..746b4bc 100644 --- a/.env.production +++ b/.env.production @@ -4,3 +4,4 @@ ENV = 'production' # base api VUE_APP_BASE_API=http://diaoling-test.ali251.langye.net/ VUE_APP_UPLOAD_API=http://diaoling-test.ali251.langye.net/api/admin/upload-file +VUE_APP_OA_URL=http://suzhouhedaooa.langye.net diff --git a/src/api/other/index.js b/src/api/other/index.js new file mode 100644 index 0000000..f4aab07 --- /dev/null +++ b/src/api/other/index.js @@ -0,0 +1,9 @@ +import request from "@/utils/request"; + +export function getOaToken (isLoading=false) { + return request({ + url: "/api/admin/oa/get-oa-token", + method: "get", + isLoading + }) +}