Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
config-center-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 649d4b07
authored
Jun 24, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://192.168.3.233:8090/luyt/config-center-front
into develop
2 parents
14543e8f
637b303b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
39 deletions
public/index.html
src/components/AceEditor.vue
src/views/AceEditor.vue
public/index.html
View file @
649d4b0
...
@@ -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>
src/components/AceEditor.vue
View file @
649d4b0
...
@@ -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");
...
...
src/views/AceEditor.vue
View file @
649d4b0
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment