Skip to content

Commit

Permalink
remove 404 request #156
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslcj committed Oct 25, 2018
1 parent 0ab5bf9 commit f9959e1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ class RegionGroup extends React.Component {

componentDidMount() {
//this.setRegionWidth();
window.postMessage({ type: 'CONSOLE_HAS_REGION' }, window.location)
$(".aliyun-console-regionbar").show();
$(window).bind("resize", this.handleResize);
window.addEventListener("message", this.handleAliyunNav);
this.getRegionList();
setTimeout(() => {
this.setRegionWidth();
this.handleRegionListStatus();
});
// window.postMessage({ type: 'CONSOLE_HAS_REGION' }, window.location)
// $(".aliyun-console-regionbar").show();
// $(window).bind("resize", this.handleResize);
// window.addEventListener("message", this.handleAliyunNav);
// this.getRegionList();
// setTimeout(() => {
// this.setRegionWidth();
// this.handleRegionListStatus();
// });
this.nameSpaceList && this.nameSpaceList.getNameSpaces();
}
componentWillUnmount() {
$(window).unbind('resize', this.handleResize);
Expand Down
20 changes: 10 additions & 10 deletions console/src/main/resources/static/src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,16 @@ window.importEditor = callback => {

window._getLink = function () {
let _linkObj = {};
window.request({
url: "com.alibaba.nacos.service.getLinks",
async: false,
data: {},
success: res => {
if (res.code === 200) {
_linkObj = res.data;
}
}
});
// window.request({
// url: "com.alibaba.nacos.service.getLinks",
// async: false,
// data: {},
// success: res => {
// if (res.code === 200) {
// _linkObj = res.data;
// }
// }
// });
return function (linkName) {
return _linkObj[linkName] || "";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ConfigDetail extends React.Component {
});
}
this.getDataDetail();
this.getTags();
// this.getTags();
}
openLoading() {
this.setState({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class ConfigEditor extends React.Component {
this.betaips = document.getElementById('betaips');
this.getDataDetail();
this.chontenttab = document.getElementById('chontenttab'); //diff标签
this.getTags();
this.getTagLst();
// this.getTags();
// this.getTagLst();
}

initMoacoEditor(language, value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ class ConfigurationManagement extends React.Component {
}

componentDidMount() {
this.getGroup();
// this.getGroup();
if (window.pageLanguage === 'zh-cn') {
this.getContentList(); //在中文站获取概览页
// this.getContentList(); //在中文站获取概览页
this.setState({
isCn: true
});
Expand Down Expand Up @@ -295,8 +295,8 @@ class ConfigurationManagement extends React.Component {
});
}
this.getData();
this.getGroupsList();
this.getTagLst();
// this.getGroupsList();
// this.getTagLst();
}
getData(pageNo = 1, clearSelect = true) {
let self = this;
Expand Down

0 comments on commit f9959e1

Please sign in to comment.