Commit 09476c72 authored by 前端-许佳敏's avatar 前端-许佳敏
parents 818e475a 57ffd5a6
......@@ -22,7 +22,6 @@ const addSchemaAction = createFormActions()
const SignUpForm = () => {
const { number } = history.location.query;
const { memberId, memberRoleId, name } = JSON.parse(localStorage.getItem('auth'));
const {
id,
......@@ -34,7 +33,7 @@ const SignUpForm = () => {
const [btnLoading, setBtnLoading] = useState(false);
const [refundDisabled, setRefundDisabled] = useState(false);
const [formValue, setFormValue] = useState<any>({ areas: [] });
const { token } = getAuth() || {}
const { token, name } = getAuth() || {}
const getCountryCodeId = async () => {
......
......@@ -6,6 +6,7 @@ import { Tabs, Card, Button, Badge } from 'antd';
import ReutrnEle from '@/components/ReturnEle';
import { PublicApi } from '@/services/api';
import { getAuth } from '@/utils/auth';
import Material from '../../purchaseInquiry/addInquiry/components/material';
import Demand from '../../purchaseInquiry/addInquiry/components/demand';
......@@ -34,7 +35,7 @@ const AddForm = () => {
number
},
pathname, } = history.location;
const { memberId, memberRoleId, name } = JSON.parse(localStorage.getItem('auth'));
const { memberId, memberRoleId, name } = getAuth();
const [path] = useState(pathname.split('/')[pathname.split('/').length - 1]);
console.log(path)
/** 基本信息 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment