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:
parent
443cfd9826
commit
6dc359f4a2
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user