神仙都没用 1 年之前
父節點
當前提交
2eea120fe8
共有 4 個文件被更改,包括 1852 次插入519 次删除
  1. 1432 96
      build/cool/eps.d.ts
  2. 2 2
      src/config/proxy.ts
  3. 411 420
      src/modules/helper/views/ai-code.vue
  4. 7 1
      src/plugins/editor-monaco/components/monaco.vue

File diff suppressed because it is too large
+ 1432 - 96
build/cool/eps.d.ts


+ 2 - 2
src/config/proxy.ts

@@ -1,8 +1,8 @@
 export const proxy = {
 	"/dev/": {
-		// target: "http://127.0.0.1:8001",
+		target: "http://127.0.0.1:9009",
 		// target: "http://192.168.0.112:9009",
-		target: "https://dev-admin.cool-js.cloud",
+		// target: "https://dev-admin.cool-js.cloud",
 		changeOrigin: true,
 		rewrite: (path: string) => path.replace(/^\/dev/, "")
 	},

File diff suppressed because it is too large
+ 411 - 420
src/modules/helper/views/ai-code.vue


+ 7 - 1
src/plugins/editor-monaco/components/monaco.vue

@@ -101,6 +101,11 @@ function appendContent(text: string = "") {
 	}
 }
 
+// 滚动行
+function revealLine(val: number) {
+	editor?.revealLine(val);
+}
+
 // 格式化内容
 async function formatCode() {
 	await editor?.getAction("editor.action.formatDocument")?.run();
@@ -190,7 +195,8 @@ defineExpose({
 	editor,
 	setContent,
 	appendContent,
-	formatCode
+	formatCode,
+	revealLine
 });
 </script>
 

Some files were not shown because too many files changed in this diff