fix: Fixed the platform entrance not switching when switching projects

Fix the above issue by mobox observer

Change-Id: I14f14a54586c584f7e6138cfc7aad9721cdfaf7f
This commit is contained in:
xusongfu 2021-11-01 16:03:15 +08:00
parent 443cfd9826
commit 6dc359f4a2
2 changed files with 4 additions and 1 deletions

View File

@ -13,10 +13,13 @@
// limitations under the License. // limitations under the License.
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { inject, observer } from 'mobx-react';
import { Button, Col, Row } from 'antd'; import { Button, Col, Row } from 'antd';
import Avatar from './AvatarDropdown'; import Avatar from './AvatarDropdown';
import styles from './index.less'; import styles from './index.less';
@inject('rootStore')
@observer
export class GlobalHeaderRight extends PureComponent { export class GlobalHeaderRight extends PureComponent {
get isAdminPage() { get isAdminPage() {
const { isAdminPage = false } = this.props; const { isAdminPage = false } = this.props;

View File

@ -14,7 +14,7 @@
import { inject, observer } from 'mobx-react'; import { inject, observer } from 'mobx-react';
import { ModalAction } from 'containers/Action'; import { ModalAction } from 'containers/Action';
import globalVolumeStore from '@/stores/cinder/volume'; import globalVolumeStore from 'stores/cinder/volume';
@inject('rootStore') @inject('rootStore')
@observer @observer