Explorar el Código

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

zouzz hace 2 años
padre
commit
c8e6f5af65
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 => {