Commit 649d4b07 by zhangxw

Merge branch 'develop' of http://192.168.3.233:8090/luyt/config-center-front into develop

2 parents 14543e8f 637b303b
...@@ -16,15 +16,10 @@ ...@@ -16,15 +16,10 @@
</body> </body>
<script src="./on-error.js"></script> <script src="./on-error.js"></script>
<!-- 编辑器 --> <!-- 编辑器 -->
<script src="https://cdn.staticfile.org/ace/1.4.14/ace.min.js"></script> <script src="https://img02.glsx.com.cn/ace/1.4.14/ace.min.js"></script>
<script src="https://cdn.staticfile.org/ace/1.4.14/ext-beautify.min.js"></script> <script src="https://img02.glsx.com.cn/ace/1.4.14/ext-beautify.min.js"></script>
<script src="https://cdn.staticfile.org/ace/1.4.14/ext-language_tools.min.js"></script> <script src="https://img02.glsx.com.cn/ace/1.4.14/ext-language_tools.min.js"></script>
<script src="https://cdn.staticfile.org/ace/1.4.14/mode-javascript.min.js"></script> <script src="https://img02.glsx.com.cn/ace/1.4.14/mode-javascript.min.js"></script>
<script src="https://cdn.staticfile.org/ace/1.4.14/snippets/javascript.min.js"></script> <script src="https://img02.glsx.com.cn/ace/1.4.14/snippets/javascript.min.js"></script>
<!-- <script src="https://cdn.staticfile.org/ace/1.4.14/worker-javascript.min.js"></script> --> <script src="https://img02.glsx.com.cn/ace/1.4.14/theme-one_dark.min.js"></script>
<!-- <script src="https://cdn.staticfile.org/ace/1.4.14/theme-xcode.min.js"></script> -->
<!-- <script src="https://cdn.staticfile.org/ace/1.4.14/theme-twilight.min.js"></script> -->
<!-- <script src="https://cdn.staticfile.org/ace/1.4.14/theme-tomorrow_night_eighties.min.js"></script> -->
<script src="https://cdn.staticfile.org/ace/1.4.14/theme-one_dark.min.js"></script>
</html> </html>
...@@ -73,20 +73,7 @@ export default defineComponent({ ...@@ -73,20 +73,7 @@ export default defineComponent({
onMounted(() => { onMounted(() => {
if (window.ace) { if (window.ace) {
let ace = window.ace; let ace = window.ace;
ace.config.set("basePath", "https://cdn.staticfile.org/ace/1.4.14/"); ace.config.set("basePath", "https://img02.glsx.com.cn/ace/1.4.14/");
// // ace.config.setModuleUrl(
// // "ace/mode/javascript_worker",
// // "https://cdn.staticfile.org/ace/1.4.14/worker-javascript.min.js"
// // );
// // ace.config.set(
// // "basePath",
// // "https://cdn.staticfile.org/ace/1.4.14/"
// // );
// // ace.config.setModuleUrl(
// // "ace/ext/language_tools",
// // "https://cdn.staticfile.org/ace/1.4.14/ext-language_tools.min.js"
// // );
editorRef.value = ace.edit("editor"); editorRef.value = ace.edit("editor");
// beautify = ace.require("ace/ext/beautify"); // beautify = ace.require("ace/ext/beautify");
......
...@@ -26,20 +26,7 @@ export default defineComponent({ ...@@ -26,20 +26,7 @@ export default defineComponent({
onMounted(() => { onMounted(() => {
if (window.ace) { if (window.ace) {
let ace = window.ace; let ace = window.ace;
ace.config.set("basePath", "https://cdn.staticfile.org/ace/1.4.14/"); ace.config.set("basePath", "https://img02.glsx.com.cn/ace/1.4.14/");
// // ace.config.setModuleUrl(
// // "ace/mode/javascript_worker",
// // "https://cdn.staticfile.org/ace/1.4.14/worker-javascript.min.js"
// // );
// // ace.config.set(
// // "basePath",
// // "https://cdn.staticfile.org/ace/1.4.14/"
// // );
// // ace.config.setModuleUrl(
// // "ace/ext/language_tools",
// // "https://cdn.staticfile.org/ace/1.4.14/ext-language_tools.min.js"
// // );
editorRef.value = ace.edit("editor"); editorRef.value = ace.edit("editor");
beautify = ace.require("ace/ext/beautify"); beautify = ace.require("ace/ext/beautify");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!