Commit 61d7b3ff by zhaochengxiang

管理更多控制

parent 521d1ab0
...@@ -4,7 +4,7 @@ import { ...@@ -4,7 +4,7 @@ import {
Route, Switch Route, Switch
} from 'react-router-dom'; } from 'react-router-dom';
import { $hostParams, ContextPath } from './util'; import { $hostParams, ContextPath, isSzseEnv } from './util';
import loadable from "./util/loadable"; import loadable from "./util/loadable";
import { AssetMountReference } from './util/constant'; import { AssetMountReference } from './util/constant';
...@@ -45,7 +45,9 @@ export class App extends React.Component { ...@@ -45,7 +45,9 @@ export class App extends React.Component {
componentDidMount() { componentDidMount() {
this.setState({ hostParams: this.props?.data }); this.setState({ hostParams: this.props?.data });
this.getDataRoles(); if (isSzseEnv) {
this.getDataRoles();
}
this.$$hostParams = $hostParams.subscribe({ this.$$hostParams = $hostParams.subscribe({
next: (v) => { next: (v) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment