mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-12 13:42:50 +00:00
1
This commit is contained in:
parent
129d401d64
commit
2eea120fe8
1772
build/cool/eps.d.ts
vendored
1772
build/cool/eps.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
|||||||
export const proxy = {
|
export const proxy = {
|
||||||
"/dev/": {
|
"/dev/": {
|
||||||
// target: "http://127.0.0.1:8001",
|
target: "http://127.0.0.1:9009",
|
||||||
// target: "http://192.168.0.112:9009",
|
// target: "http://192.168.0.112:9009",
|
||||||
target: "https://dev-admin.cool-js.cloud",
|
// target: "https://dev-admin.cool-js.cloud",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path: string) => path.replace(/^\/dev/, "")
|
rewrite: (path: string) => path.replace(/^\/dev/, "")
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -101,6 +101,11 @@ function appendContent(text: string = "") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 滚动行
|
||||||
|
function revealLine(val: number) {
|
||||||
|
editor?.revealLine(val);
|
||||||
|
}
|
||||||
|
|
||||||
// 格式化内容
|
// 格式化内容
|
||||||
async function formatCode() {
|
async function formatCode() {
|
||||||
await editor?.getAction("editor.action.formatDocument")?.run();
|
await editor?.getAction("editor.action.formatDocument")?.run();
|
||||||
@ -190,7 +195,8 @@ defineExpose({
|
|||||||
editor,
|
editor,
|
||||||
setContent,
|
setContent,
|
||||||
appendContent,
|
appendContent,
|
||||||
formatCode
|
formatCode,
|
||||||
|
revealLine
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user