This commit is contained in:
神仙都没用 2024-06-27 18:45:40 +08:00
parent 129d401d64
commit 2eea120fe8
4 changed files with 2030 additions and 690 deletions

1772
build/cool/eps.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

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

View File

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