diff --git a/package.json b/package.json index 3a51a85..cf22a3a 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "dayjs": "^1.11.18", "echarts": "^6.0.0", "element-plus": "2.11.3", + "highlight.js": "^11.11.1", "image-conversion": "^2.1.1", "nprogress": "^0.2.0", "pinia": "^3.0.3", diff --git a/src/api/index.ts b/src/api/index.ts index b951dbd..14197db 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -2,7 +2,6 @@ import auth from "@/api/model/auth" import system from "@/api/model/system" import tools from "@/api/model/tools" - export default { auth, system, diff --git a/src/api/model/tools.ts b/src/api/model/tools.ts index 49e1939..921b4de 100644 --- a/src/api/model/tools.ts +++ b/src/api/model/tools.ts @@ -9,7 +9,7 @@ export default { return await http.post("gen_table/add", data); }, edit: async function (data = {}) { - return await http.put("gen_table/edit", data); + return await http.post("gen_table/edit", data); }, del: async function (data = {}) { return await http.delete("gen_table/del", data); @@ -20,5 +20,14 @@ export default { build: async function (data = {}) { return await http.post("gen_table/build", data); }, + info: async function (data = {}) { + return await http.get("gen_table/info", data); + }, + sync: async function (data = {}) { + return await http.post("gen_table/sync", data); + }, + show: async function (data = {}) { + return await http.get("gen_table/show", data); + }, } } diff --git a/src/components/piPreCode/index.vue b/src/components/piPreCode/index.vue new file mode 100644 index 0000000..4b93c9b --- /dev/null +++ b/src/components/piPreCode/index.vue @@ -0,0 +1,42 @@ + + + + diff --git a/src/components/piTable/index.vue b/src/components/piTable/index.vue index a74f6ef..63d2277 100644 --- a/src/components/piTable/index.vue +++ b/src/components/piTable/index.vue @@ -13,7 +13,8 @@
- +
@@ -92,8 +93,9 @@