@yqg/permission 1.0.11-alpha.3 → 1.0.11-alpha.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yqg/permission",
3
- "version": "1.0.11-alpha.3",
3
+ "version": "1.0.11-alpha.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -168,10 +168,10 @@
168
168
 
169
169
  const allPermissions = computed(() => {
170
170
  if (Array.isArray(props.permissions)) {
171
- return props.permissions;
171
+ return props.permissions.map((item) => item.trim());
172
172
  }
173
173
 
174
- return props.permissions.split(',');
174
+ return props.permissions?.split(',')?.map((item) => item.trim()) || [];
175
175
  });
176
176
 
177
177
  const businessCode = computed(() => {