Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yanlinly committed Oct 26, 2018
1 parent c8804a5 commit e226b5e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ class NewNameSpace extends React.Component {
});
});
}

refreshNameSpace() {
setTimeout(() => {
window.request({
type: 'get',
url: `/nacos/v1/console/namespaces`,
success: res => {
if (res.code === 200) {
window.namespaceList = res.data;
}
}
});
}, 2000);
}

validateChart(rule, value, callback) {
const chartReg = /[@#\$%\^&\*]+/g;
Expand Down
5 changes: 5 additions & 0 deletions example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,10 @@
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</dependency>
<!-- log -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
</dependencies>
</project>

0 comments on commit e226b5e

Please sign in to comment.