@cloud-app-dev/vidc 2.0.0-alpha.31 → 2.0.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AppRoute/index.js +3 -3
- package/package.json +1 -1
package/es/AppRoute/index.js
CHANGED
|
@@ -55,7 +55,8 @@ var AppRoute = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
return _this.setState({
|
|
56
56
|
matchIndex: index
|
|
57
57
|
});
|
|
58
|
-
}
|
|
58
|
+
} // 基座下不更新索引,路由切换由基座控制
|
|
59
|
+
|
|
59
60
|
|
|
60
61
|
if (_this.state.index !== -1) {
|
|
61
62
|
return _this.setState({
|
|
@@ -73,7 +74,7 @@ var AppRoute = /*#__PURE__*/function (_React$Component) {
|
|
|
73
74
|
_createClass(AppRoute, [{
|
|
74
75
|
key: "componentDidMount",
|
|
75
76
|
value: function componentDidMount() {
|
|
76
|
-
console.debug("App Routes\uFF1A"
|
|
77
|
+
console.debug("App Routes\uFF1A", this.props.routes);
|
|
77
78
|
}
|
|
78
79
|
}, {
|
|
79
80
|
key: "shouldComponentUpdate",
|
|
@@ -106,7 +107,6 @@ var AppRoute = /*#__PURE__*/function (_React$Component) {
|
|
|
106
107
|
props = __rest(_a, ["routes"]);
|
|
107
108
|
|
|
108
109
|
var component = matchIndex > -1 ? routes[matchIndex].element : undefined;
|
|
109
|
-
console.debug('Route Match Index', matchIndex);
|
|
110
110
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Routes, null, routes.map(function (item, index) {
|
|
111
111
|
return /*#__PURE__*/React.createElement(Route, {
|
|
112
112
|
path: item.path,
|