mali-applet-ui 1.1.61 → 1.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/env/index.js +8 -5
  2. package/package.json +1 -1
package/env/index.js CHANGED
@@ -43,14 +43,15 @@ function getEnvName (mode) {
43
43
 
44
44
  function getPlatformName (platform) {
45
45
  const maps = {
46
+ default: '',
46
47
  'mp-weixin': '微信',
47
48
  'mp-qiwei': '企微',
48
49
  'mp-dingtalk': '钉钉'
49
50
  }
50
- return maps[platform] || platform
51
+ return hasEmptyConf(platform) ? '' : (maps[platform] || platform)
51
52
  }
52
53
 
53
- function getSubModuleName (module) {
54
+ function getSubModuleName (me) {
54
55
  const maps = {
55
56
  default: '',
56
57
  labour: '码里劳务',
@@ -59,18 +60,20 @@ function getSubModuleName (module) {
59
60
  design: '码里设计',
60
61
  jicai: '码里集采'
61
62
  }
62
- return `${maps[module]}`
63
+ return `${hasEmptyConf(me) ? '' : (maps[me] || me)}`
63
64
  }
64
65
 
65
66
  function getCustomName (custom) {
66
67
  const maps = {
68
+ default: '',
67
69
  hengkun: '恒坤劳务',
68
70
  beizhuang: '北装装饰',
69
71
  zhongjian1: '中建一局',
70
72
  guowenchuang: '国文创',
71
- rongdu: '融都建设'
73
+ rongdu: '融都建设',
74
+ jinzhimeixue: '金指美学'
72
75
  }
73
- return `${maps[custom] || ''}`
76
+ return `${hasEmptyConf(custom) ? '' : (maps[custom] || custom)}`
74
77
  }
75
78
 
76
79
  function parseEnvFile (dirPath, name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "码里UI-小程序组件库(vue2)",
5
5
  "files": [
6
6
  "lib",