Browse Source

模型开发和推理服务,增加文件下载功能,增加下载按钮置灰控制功能

zouzz 2 years ago
parent
commit
c8e6f5af65
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ai-modules/login/src/containers/LoginPage/LoginForm.jsx

+ 1 - 0
ai-modules/login/src/containers/LoginPage/LoginForm.jsx

@@ -29,6 +29,7 @@ class LoginForm extends React.Component {
         let url = res.data && res.data.successRedirectUrl;
         url = `${url}&state=${this.props.referUrl}`;
         window.top.location.href = url;
+        window.top.localStorage.setItem('canDownload', res.data.canDownload);
         this.setState({ loading: false });
       })
       .catch(error => {