From b7d347e75d0aeebca06a4f12c7a2aba155c24b1e Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期一, 31 七月 2023 17:01:38 +0800
Subject: [PATCH] 更新配置文件请求地址

---
 src/api/user/index.ts |   49 +++++--------------------------------------------
 1 files changed, 5 insertions(+), 44 deletions(-)

diff --git a/src/api/user/index.ts b/src/api/user/index.ts
index f3f2771..229cd57 100644
--- a/src/api/user/index.ts
+++ b/src/api/user/index.ts
@@ -1,48 +1,9 @@
 import request from '@/utils/axios'
-export function signIn(params: string) {
-    return request({
-        url: '/user/info/login',
-        method: 'post',
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded'
-        },
-        data: params,
-    })
-}
-export function getuserinfo() {
-    return request({
-        url: '/user/info/getUserInfo',
-        method: 'post'
-    })
-}
-export function getUsersByRoleCode(params: string) {
-    return request({
-        url: '/user/info/getUsersByRoleCode',
-        method: 'post',
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded'
-        },
-        data: params,
-    })
-}
-export function getUsersByRoleGroup(params: Object) {
-    return request({
-        url: '/user/info/getUsersByRoleGroup',
-        method: 'post',
-        data: params,
-    })
-}
-// 修改用户信息
-export function editUserInfo(params:object) {
-    return request({
-        url: '/user/info/update',
-        method: 'post',
-        data: params
-    })
-}
+import { confingInfoStore } from '@/stores/StoresConfing'
+
 export function sendValidateCode(params: string) {
     return request({
-        url: '/user/info/sendValidateCode',
+        url: `${confingInfoStore().confingInfo.base_api}/user/info/sendValidateCode`,
         method: 'post',
         headers: {
             'Content-Type': 'application/x-www-form-urlencoded'
@@ -52,14 +13,14 @@
 }
 export function getPatientInfo2(params: Object) {
     return request({
-        url: '/topic/getPatientInfo2',
+        url: `${confingInfoStore().confingInfo.base_api}/topic/getPatientInfo2`,
         method: 'post',
         data: params,
     })
 }
 export function updatePatient(params: Object) {
     return request({
-        url: '/topic/updatePatient',
+        url: `${confingInfoStore().confingInfo.base_api}/topic/updatePatient`,
         method: 'post',
         data: params,
     })

--
Gitblit v1.8.0