From 3200459f34db63daf7270502508bdb20f90a8e7d Mon Sep 17 00:00:00 2001 From: qinzhenpen Date: Fri, 16 Aug 2024 09:24:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 5 + package.json | 5 +- src/assets/styles/sidebar.scss | 4 +- src/assets/styles/variables.module.scss | 2 +- src/layout/index.vue | 16 +- src/router/index.js | 14 + src/store/modules/app.js | 2 +- src/utils/request.js | 2 - .../components/AIVenisonDiagram.vue | 261 ++++++++++-------- .../AIGCLargeModel/index.vue | 2 +- src/views/visual-analysis/index.vue | 19 ++ 11 files changed, 197 insertions(+), 135 deletions(-) create mode 100644 .prettierrc create mode 100644 src/views/visual-analysis/index.vue diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..5d99a5e --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ + +{ + "htmlWhitespaceSensitivity": "ignore", + "printWidth": 1000 + } \ No newline at end of file diff --git a/package.json b/package.json index dbc9f8b..f6854b6 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,14 @@ "element-plus": "2.2.27", "file-saver": "2.0.5", "fuse.js": "6.6.2", + "highlight.js": "^11.10.0", "js-cookie": "3.0.1", "jsencrypt": "3.3.1", + "marked": "^14.0.0", + "md-editor-v3": "^4.18.1", "nprogress": "0.2.0", "pinia": "2.0.22", - "vue": "3.2.45", + "vue": "^3.2.47", "vue-cropper": "1.0.3", "vue-router": "4.1.4" }, diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index b866f48..f00bdc0 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -1,10 +1,12 @@ #app { .main-container { - height: 100%; + height:calc(100% - 58px); transition: margin-left .28s; margin-left: $base-sidebar-width; position: relative; + background: url("@/assets/images/背景.png") no-repeat; + background-size: 100% 100%; } .sidebarHide { diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index e065775..c57f1e0 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -42,7 +42,7 @@ $--color-warning: #E6A23C; $--color-danger: #F56C6C; $--color-info: #909399; -$base-sidebar-width: 200px; +$base-sidebar-width: 239px; // the :export directive is the magic sauce for webpack // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass diff --git a/src/layout/index.vue b/src/layout/index.vue index b257c46..c544910 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -4,9 +4,11 @@ class="app-wrapper" :style="{ '--current-color': theme }" > -