config.ts 590 B

1234567891011121314151617181920212223
  1. // 微信配置
  2. export type WxConfig = {
  3. debug: boolean;
  4. };
  5. // 应用配置
  6. export type Config = {
  7. name: string; // 应用名称
  8. locale?: string; // 应用语言
  9. website: string; // 官网地址
  10. host: string; // 主机地址
  11. baseUrl: string; // 基础路径
  12. showDarkButton: boolean; // 是否显示暗色模式切换按钮
  13. isCustomTabBar: boolean; // 是否自定义 tabBar
  14. backTop: boolean; // 是否显示回到顶部按钮
  15. wx: WxConfig; // 微信配置
  16. };
  17. // 插件配置
  18. export type PluginConfig = {
  19. options?: UTSJSONObject;
  20. install(app: VueApp): UTSJSONObject | void;
  21. };