From 340c41a0166ec341edc4e80e004cbaa86d15eef0 Mon Sep 17 00:00:00 2001 From: ray_wuhao <443547225@qq.com> Date: Tue, 4 Apr 2023 15:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0=E8=BD=BD=E5=8A=A8?= =?UTF-8?q?=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.test | 2 +- CHANGELOG.md | 6 + index.html | 119 ++++++ package.json | 2 +- postcss.config.cjs | 22 +- src/App.tsx | 14 +- src/layout/components/SiderBar/index.tsx | 16 +- src/layout/index.tsx | 3 +- src/router/basic.ts | 3 +- src/router/permission.ts | 4 +- src/store/index.ts | 25 +- src/store/modules/signin.ts | 37 +- src/utils/cache.ts | 8 +- src/utils/crypto.ts | 8 + src/utils/element.ts | 28 +- src/utils/hook.ts | 2 +- src/utils/user.ts | 13 - src/utils/xlsx.ts | 34 +- vite.config.ts.timestamp-1680592192926.mjs | 462 +++++++++++++++++++++ 21 files changed, 744 insertions(+), 68 deletions(-) delete mode 100644 src/utils/user.ts create mode 100644 vite.config.ts.timestamp-1680592192926.mjs diff --git a/.env.development b/.env.development index e67e0b80..d48e91ea 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ #开发环境 NODE_ENV = 'development' -VITE_APP_URL = 'api/' +VITE_APP_URL = '/api' # office 服务代理地址 VITE_APP_OFFICE_PROXY_URL = '/office/' diff --git a/.env.production b/.env.production index d170e287..d4ddf677 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ #生产环境 NODE_ENV = 'production' -VITE_APP_URL = 'api/' +VITE_APP_URL = '/' # office 服务代理地址 VITE_APP_OFFICE_PROXY_URL = 'https://office.yka.one/' diff --git a/.env.test b/.env.test index a21549a5..91ceefa8 100644 --- a/.env.test +++ b/.env.test @@ -1,7 +1,7 @@ #测试环境 NODE_ENV = 'test' -VITE_APP_URL = 'api/' +VITE_APP_URL = 'https://testray.yka.moe/doc-json/' # office 服务代理地址 VITE_APP_OFFICE_PROXY_URL = 'https://office.yka.one/' diff --git a/CHANGELOG.md b/CHANGELOG.md index 9628b1a2..5f0ff2b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ ### Fixes - 修复移动端登陆页显示问题 +- 改进了一些方法逻辑的问题 +- 新增加载动画 + +### Feats + +- 修改移动端自适应配置方案(现在使用 postcss-px-to-viewport),默认不启用 ## 3.1.5 diff --git a/index.html b/index.html index f011b8d6..7b88dac0 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,127 @@