소스 검색

更新企业LOGO

tags/小炒逻辑变更前
yangwenhua 2 년 전
부모
커밋
6907043564
2개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. +1
    -1
      src/pages/sys/sysSettings/components/EnterpriseLog.jsx
  2. +3
    -4
      src/pages/sys/sysSettings/index.jsx

+ 1
- 1
src/pages/sys/sysSettings/components/EnterpriseLog.jsx 파일 보기

@@ -70,7 +70,7 @@ const EnterpriseLog = (props) => {
fileData = e.target.result;
// 使用 axios 进行文件上传的请求
axios.put(action, fileData, {
withCredentials,
withCredentials,
headers,
onUploadProgress: ({ total, loaded }) => {
// 进行上传进度输出,更加直观


+ 3
- 4
src/pages/sys/sysSettings/index.jsx 파일 보기

@@ -72,10 +72,9 @@ const Settings = () => {
}
};

const onUpdateCompanyInfo = (companyInfo) => {
updateCompany(companyInfo).then(() => {
onFetchCompanyInfo();
});
const onUpdateCompanyInfo = async (companyInfo) => {
await updateCompany(companyInfo);
await onFetchCompanyInfo();
}

const onFetchCompanyInfo = async () => {


불러오는 중...
취소
저장