瀏覽代碼

更新企业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 () => {


Loading…
取消
儲存