换为js-yaml后调用了错误的方法,修复该变更导致所有yaml文件的校验都报错的问题 (#10724)

This commit is contained in:
Darren Luo 2023-07-05 18:57:35 +08:00 committed by GitHub
parent 653d16da67
commit a70483563c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

View File

@ -141,7 +141,7 @@ export default {
*/
validateYaml(str) {
try {
return yaml.parse(str);
return yaml.load(str);
} catch (e) {
return false;
}

View File

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