lidie 1 год назад
Родитель
Сommit
f2aeb1bde2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/component/fileTraining/index.vue

+ 2 - 2
src/views/component/fileTraining/index.vue

@@ -472,9 +472,9 @@ export default {
         updateFile () {
             const hasRole = localStorage.getItem('hasHighRole') || 0
             // const roleKey = ['xtgljs', 'wjglzzc', 'wjgly', 'zhsfzr']
-            const curRole = this.role.map(i => i.alias)
+            // const curRole = this.role.map(i => i.alias)
             // const isPower = curRole.some(i => roleKey.includes(i))
-            if (this.isSuper || hasRole === 1) {
+            if (this.isSuper || hasRole == 1) {
                 const a = document.createElement('a')
                 a.href = this.optionFile.url
                 a.download = this.optionFile.data.fileName