换为js-yaml后调用了错误的方法,修复该变更导致所有yaml文件的校验都报错的问题 (#10724)
This commit is contained in:
parent
653d16da67
commit
a70483563c
@ -141,7 +141,7 @@ export default {
|
||||
*/
|
||||
validateYaml(str) {
|
||||
try {
|
||||
return yaml.parse(str);
|
||||
return yaml.load(str);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
|
||||
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
|
||||
<!-- 第三方css结束 -->
|
||||
<link href="./css/main.css?f8ce6847060d8e383da7" rel="stylesheet"></head>
|
||||
<link href="./css/main.css?fa5b9ed06cebf6d77a17" rel="stylesheet"></head>
|
||||
|
||||
<body>
|
||||
<div id="root" style="overflow:hidden"></div>
|
||||
@ -56,6 +56,6 @@
|
||||
<script src="console-ui/public/js/merge.js"></script>
|
||||
<script src="console-ui/public/js/loader.js"></script>
|
||||
<!-- 第三方js结束 -->
|
||||
<script type="text/javascript" src="./js/main.js?f8ce6847060d8e383da7"></script></body>
|
||||
<script type="text/javascript" src="./js/main.js?fa5b9ed06cebf6d77a17"></script></body>
|
||||
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user