From 12025770bc99a0532350fd63debbfa66a6dd2bc8 Mon Sep 17 00:00:00 2001 From: 77 <77@77.com> Date: Fri, 17 May 2024 22:09:06 +0800 Subject: [PATCH] 123 --- src/api/login.js | 7 ++++ src/layout/components/Navbar.vue | 33 +++++++++++++++++++ src/store/getters.js | 2 ++ src/store/modules/user.js | 5 +++ .../system/tenant/add-or-update-tenant.vue | 4 +-- src/views/system/tenant/index.vue | 20 ++++++++--- vue.config.js | 4 +-- 7 files changed, 67 insertions(+), 8 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index 3c5bcfe..aab82ce 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -69,3 +69,10 @@ export function getCodeSms() { timeout: 20000 }) } + +export function authTenantList() { + return request({ + url: '/auth/tenant/list', + method: 'get' + }) +} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 1c192d5..c7864cb 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -7,6 +7,19 @@
diff --git a/vue.config.js b/vue.config.js index 5d3da61..f6b04a1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, - // target: `http://124.222.254.188:9779/prod-api`, + // target: `http://localhost:8080`, + target: `http://124.222.254.188:8090`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''