sale-client 4.2.118 → 4.2.119

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": "sale-client",
3
- "version": "4.2.118",
3
+ "version": "4.2.119",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -212,12 +212,7 @@ export default {
212
212
  },
213
213
  methods: {
214
214
  permission (name) {
215
- if (this.$login.r.find(value => value == '收费综合查询')) {
216
- if (!this.$login.r.find(value => value == name)) {
217
- return false
218
- }
219
- }
220
- return true
215
+ return this.$login.r.includes(name)
221
216
  },
222
217
  async search () {
223
218
  let http = new HttpResetClass()