소스 검색

fix: the behavior and value of __WECHART__ are inconsistent

Casper Dai 2 년 전
부모
커밋
80a005d7dc
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      src/constant.js

+ 4 - 3
src/constant.js

@@ -288,14 +288,15 @@ export const RoleAccess = {
 export const AlarmLevelInfo = {
   0: '提示性预警',
   1: '中级预警',
-  2: '紧急预警'
+  2: '紧急预警',
+  9999: '所有预警'
 }
 
 export const AlarmStrategies = [
   { key: 'note', label: '短信', support: true },
   { key: 'email', label: '邮件', support: true },
-  { key: 'wechat', label: '微信', support: !__WECHAT__ },
-  { key: 'wechatApplet', label: '小程序', support: !__WECHAT__ }
+  { key: 'wechat', label: '微信', support: __WECHAT__ },
+  { key: 'wechatApplet', label: '小程序', support: __WECHAT__ }
 ]
 
 export const SupportedAlarmStrategies = AlarmStrategies.filter(({ support }) => support)