From f549f2654127e4812b4e255a2bbccddf440582c1 Mon Sep 17 00:00:00 2001 From: huangjunsen <951434130@qq.com> Date: Mon, 31 Mar 2025 17:35:46 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat(style):=20:sparkles:=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=85=A8=E5=B1=80css=E8=A6=86=E5=86=99element=20ui=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/manager-web/src/styles/global.scss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 main/manager-web/src/styles/global.scss diff --git a/main/manager-web/src/styles/global.scss b/main/manager-web/src/styles/global.scss new file mode 100644 index 000000000..dfc8e51bc --- /dev/null +++ b/main/manager-web/src/styles/global.scss @@ -0,0 +1,14 @@ +// 覆盖 autofill 样式 +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus, +textarea:-webkit-autofill, +textarea:-webkit-autofill:hover, +textarea:-webkit-autofill:focus, +select:-webkit-autofill, +select:-webkit-autofill:hover, +select:-webkit-autofill:focus { + -webkit-box-shadow: 0 0 0px 1000px transparent inset; + transition: background-color 5000s ease-in-out 0s; + background-color: transparent; +} \ No newline at end of file From fef8cece904cd80dfb68656a44d06068fd848f51 Mon Sep 17 00:00:00 2001 From: huangjunsen <951434130@qq.com> Date: Mon, 31 Mar 2025 19:40:57 +0800 Subject: [PATCH 2/6] =?UTF-8?q?chore:=20:hammer:=20=E5=8E=BB=E9=99=A4.env.?= =?UTF-8?q?development=E5=BF=BD=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index e4c2ac00e..c44a16872 100644 --- a/.gitignore +++ b/.gitignore @@ -150,7 +150,6 @@ main/manager-web/node_modules .config.yaml .secrets.yaml .private_config.yaml -.env.development # model files main/xiaozhi-server/models/SenseVoiceSmall/model.pt From 20c1f0576b0710850f55853996c3da6a6e1837a1 Mon Sep 17 00:00:00 2001 From: huangjunsen <951434130@qq.com> Date: Mon, 31 Mar 2025 19:52:01 +0800 Subject: [PATCH 3/6] =?UTF-8?q?build(=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F)?= =?UTF-8?q?:=20:package:=20=E5=8E=BB=E9=99=A4.env=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E3=80=81=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E3=80=81=E6=8E=A7=E5=88=B6=E5=8F=B0=E5=90=8D=E7=A7=B0=E9=80=9A?= =?UTF-8?q?=E8=BF=87env=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了环境变量的读取方式 调整了请求地址配置 控制台名称通过 .env 获取 --- main/manager-web/.env | 1 + main/manager-web/.env.development | 1 + main/manager-web/.env.production | 1 + main/manager-web/public/index.html | 2 +- main/manager-web/src/apis/api.js | 4 ++-- main/manager-web/src/main.js | 1 + main/manager-web/vue.config.js | 36 ++++++++++++++++++------------ 7 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 main/manager-web/.env create mode 100644 main/manager-web/.env.development create mode 100644 main/manager-web/.env.production diff --git a/main/manager-web/.env b/main/manager-web/.env new file mode 100644 index 000000000..752f67e36 --- /dev/null +++ b/main/manager-web/.env @@ -0,0 +1 @@ +VUE_APP_TITLE=小智-智控台 \ No newline at end of file diff --git a/main/manager-web/.env.development b/main/manager-web/.env.development new file mode 100644 index 000000000..b2aadb84a --- /dev/null +++ b/main/manager-web/.env.development @@ -0,0 +1 @@ +VUE_APP_API_BASE_URL=https://2662r3426b.vicp.fun \ No newline at end of file diff --git a/main/manager-web/.env.production b/main/manager-web/.env.production new file mode 100644 index 000000000..b2aadb84a --- /dev/null +++ b/main/manager-web/.env.production @@ -0,0 +1 @@ +VUE_APP_API_BASE_URL=https://2662r3426b.vicp.fun \ No newline at end of file diff --git a/main/manager-web/public/index.html b/main/manager-web/public/index.html index 40f0613c7..3e5a13962 100644 --- a/main/manager-web/public/index.html +++ b/main/manager-web/public/index.html @@ -5,7 +5,7 @@ - 小智-智控台 + <%= htmlWebpackPlugin.options.title %>