mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 04:20:43 +08:00
refactor: 项目重构适配uni-halo,拆分首页组件
1. 统一环境变量前缀为VITE_UNI_HALO_BASEURL,替换原有VITE_SERVER_BASEURL 2. 新增首页home页面,将原index页面作为启动页跳转首页 3. 新增多个业务组件:模板组件、个人资料卡片、分类推荐卡片、文章卡片 4. 新增图片处理工具、数字格式化工具、URL验证工具 5. 重构tabbar配置,修正首页跳转路径 6. 更新站点统计API方法命名,优化请求逻辑
This commit is contained in:
+2
-2
@@ -57,7 +57,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
const localEnv = loadEnv(mode, envDir, '')
|
||||
const {
|
||||
VITE_APP_PORT,
|
||||
VITE_SERVER_BASEURL,
|
||||
VITE_UNI_HALO_BASEURL,
|
||||
VITE_APP_TITLE,
|
||||
VITE_DELETE_CONSOLE,
|
||||
VITE_APP_PUBLIC_BASE,
|
||||
@@ -191,7 +191,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
proxy: JSON.parse(VITE_APP_PROXY_ENABLE)
|
||||
? {
|
||||
[VITE_APP_PROXY_PREFIX]: {
|
||||
target: VITE_SERVER_BASEURL,
|
||||
target: VITE_UNI_HALO_BASEURL,
|
||||
changeOrigin: true,
|
||||
// 后端有/api前缀则不做处理,没有则需要去掉
|
||||
rewrite: path =>
|
||||
|
||||
Reference in New Issue
Block a user