From 7b7496dae1a09af56c5765ad8afc81d2d886c2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czhuzihan=E2=80=9D=E2=80=83?= <“772644120@qq.com”> Date: Fri, 11 Jul 2025 14:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=9C=80=E6=B1=82=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __unconfig_vite.config.js | 21 +++++++++++++++++++++ src/components/Dashboard.vue | 3 ++- src/components/LabDetail.vue | 8 +++++--- src/components/LabDrawerDetail.vue | 7 +++---- src/components/TalentDrawerDetail.vue | 7 +++---- 5 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 __unconfig_vite.config.js diff --git a/__unconfig_vite.config.js b/__unconfig_vite.config.js new file mode 100644 index 0000000..090c0b2 --- /dev/null +++ b/__unconfig_vite.config.js @@ -0,0 +1,21 @@ + +let __unconfig_data; +let __unconfig_stub = function (data = {}) { __unconfig_data = data }; +__unconfig_stub.default = (data = {}) => { __unconfig_data = data }; +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vite.dev/config/ +const __unconfig_default = defineConfig({ + plugins: [vue()], + define: { + 'import.meta.env.MODE': JSON.stringify(process.env.NODE_ENV || 'development') + }, + server: { + host: '0.0.0.0', // 允许从任何IP访问 + port: 5173, // 前端端口 + strictPort: true + } +}) + +if (typeof __unconfig_default === "function") __unconfig_default(...[{"command":"serve","mode":"development"}]);export default __unconfig_data; \ No newline at end of file diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index b7635a8..8e0120c 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -860,7 +860,7 @@ const initCharts = () => { const labLineChart = echarts.init(labLineChartRef.value) labLineChart.setOption({ title: { - text: '近三年科研成果增长曲线', + text: '科研成果增长曲线', textStyle: { color: 'rgba(255, 255, 255, 0.8)', fontSize: 14, @@ -885,6 +885,7 @@ const initCharts = () => { }, yAxis: { type: 'value', + max: 100, axisLine: { lineStyle: { color: '#fff' } }, axisLabel: { color: '#fff' }, splitLine: { diff --git a/src/components/LabDetail.vue b/src/components/LabDetail.vue index 2669a46..9fdcef8 100644 --- a/src/components/LabDetail.vue +++ b/src/components/LabDetail.vue @@ -49,7 +49,7 @@