chenyc
2023-07-31 b7d347e75d0aeebca06a4f12c7a2aba155c24b1e
更新配置文件请求地址
2个文件已修改
51 ■■■■ 已修改文件
src/api/user/index.ts 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/stores/sockteInfo.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,
    })
src/stores/sockteInfo.ts
@@ -71,7 +71,7 @@
            weightSockte.value.resultTime=infoObj.resultTime
            weightSockte.value.state=infoObj.state
        }else{
            console.log('体重不足10gk')
            console.log('体重不足10kg')
        }
       
    }