This commit is contained in:
water.lyl 2018-10-26 18:05:33 +08:00
parent c8804a5205
commit e226b5e198
2 changed files with 19 additions and 0 deletions

View File

@ -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;

View File

@ -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>