mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 04:20:43 +08:00
d8ad0772bf
1. 统一环境变量前缀为VITE_UNI_HALO_BASEURL,替换原有VITE_SERVER_BASEURL 2. 新增首页home页面,将原index页面作为启动页跳转首页 3. 新增多个业务组件:模板组件、个人资料卡片、分类推荐卡片、文章卡片 4. 新增图片处理工具、数字格式化工具、URL验证工具 5. 重构tabbar配置,修正首页跳转路径 6. 更新站点统计API方法命名,优化请求逻辑
42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
/// <reference types="vite/client" />
|
|
/// <reference types="vite-svg-loader" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue'
|
|
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
|
|
interface ImportMetaEnv {
|
|
/** 网站标题,应用名称 */
|
|
readonly VITE_APP_TITLE: string
|
|
/** 服务端口号 */
|
|
readonly VITE_SERVER_PORT: string
|
|
/** 后台接口地址 */
|
|
readonly VITE_UNI_HALO_BASEURL: string
|
|
/** 微信小程序开发版后台接口地址,不配置则使用 VITE_UNI_HALO_BASEURL */
|
|
readonly VITE_UNI_HALO_BASEURL__WEIXIN_DEVELOP?: string
|
|
/** 微信小程序体验版后台接口地址,不配置则使用 VITE_UNI_HALO_BASEURL */
|
|
readonly VITE_UNI_HALO_BASEURL__WEIXIN_TRIAL?: string
|
|
/** 微信小程序正式版后台接口地址,不配置则使用 VITE_UNI_HALO_BASEURL */
|
|
readonly VITE_UNI_HALO_BASEURL__WEIXIN_RELEASE?: string
|
|
/** H5是否需要代理 */
|
|
readonly VITE_APP_PROXY_ENABLE: 'true' | 'false'
|
|
/** H5是否需要代理,需要的话有个前缀 */
|
|
readonly VITE_APP_PROXY_PREFIX: string
|
|
/** 后端是否有统一前缀 /api */
|
|
readonly VITE_SERVER_HAS_API_PREFIX: 'true' | 'false'
|
|
/** 认证模式,'single' | 'double' ==> 单token | 双token */
|
|
readonly VITE_AUTH_MODE: 'single' | 'double'
|
|
/** 是否清除console */
|
|
readonly VITE_DELETE_CONSOLE: string
|
|
// 更多环境变量...
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv
|
|
}
|
|
|
|
declare const __VITE_APP_PROXY__: 'true' | 'false'
|