| 1234567891011121314151617181920212223 |
- import { EnumAppConfigKey } from "@/common/enum";
- import { useAppStore } from "@/store/appStore";
- export const useAppConfig = () => {
- const appStore = useAppStore();
- /**
- * 短信验证码是否开启图形验证
- */
- const isSmsCaptchaEnable = computed(() => {
- return appStore.getAppConfig(EnumAppConfigKey.SMS_CAPTCHA_ENABLE) === 'true';
- });
- /**
- * app 是否开启日志上报
- */
- const isAppLogReportEnable = computed(() => {
- return appStore.getAppConfig(EnumAppConfigKey.APP_LOG_REPORT_ENABLE) === 'true';
- });
- return {
- isSmsCaptchaEnable,
- isAppLogReportEnable
- }
- }
|