处理立减金添加者权限
This commit is contained in:
parent
14dafd4d67
commit
b84a491aec
|
@ -238,8 +238,8 @@ const req = (method, url, params, responseType) => {
|
|||
window.location.href = '/'
|
||||
}, 2000)
|
||||
} else if (response.code == 401) {
|
||||
Notify.clear()
|
||||
Notify.error(response.message)
|
||||
// Notify.clear()
|
||||
// Notify.error(response.message)
|
||||
}
|
||||
})
|
||||
.catch()
|
||||
|
|
|
@ -12,6 +12,7 @@ import {
|
|||
getProductInfoSelect,
|
||||
postsendLoginCode,
|
||||
postLoginCode,
|
||||
getVoucherWarningAccount
|
||||
} from "../../assets/api.js";
|
||||
import {
|
||||
FormInputField,
|
||||
|
@ -44,7 +45,17 @@ function FormDom(props) {
|
|||
|
||||
const authorizationCode = useRef(auth);
|
||||
authorizationCode.current = auth;
|
||||
|
||||
//获取预警人权限
|
||||
const getAccountList = () => {
|
||||
getVoucherWarningAccount().then(res =>{
|
||||
if(!res){
|
||||
sessionStorage.setItem('isEarlyWarningMan',false);
|
||||
}else{
|
||||
sessionStorage.setItem('isEarlyWarningMan',true);
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
const onSubmit = React.useCallback((form) => {
|
||||
const value = form.getValue();
|
||||
let subdata = {
|
||||
|
@ -68,6 +79,7 @@ function FormDom(props) {
|
|||
|
||||
//首次进来进行商品获取
|
||||
getProductList();
|
||||
getAccountList()
|
||||
sessionStorage.setItem("showflag", true);
|
||||
let menuList = response.menu;
|
||||
if (response.menu && response.menu.length > 0) {
|
||||
|
|
Loading…
Reference in New Issue