Преглед на файлове

fix: 文件预览版本号问题

johnsen преди 9 месеца
родител
ревизия
266a5785ba
променени са 3 файла, в които са добавени 5 реда и са изтрити 13 реда
  1. 2 11
      .vscode/settings.json
  2. 1 1
      src/main.js
  3. 2 1
      src/views/component/fileTraining/index.vue

+ 2 - 11
.vscode/settings.json

@@ -12,8 +12,7 @@
   },
   "eslint.enable": true,
   "editor.codeActionsOnSave": {
-    "source.fixAll.eslint": "always",
-    "source.organizeImports": "always"
+    "source.fixAll.eslint": "explicit"
   },
 
   // 文件和搜索设置
@@ -31,13 +30,5 @@
   // Prettier设置
   "prettier.configPath": ".prettierrc.json",
   "prettier.requireConfig": true,
-
-  // Vetur设置
-  "vetur.format.defaultFormatter.html": "prettier",
-  "vetur.format.defaultFormatter.js": "prettier-eslint",
-  "vetur.validation.template": false, // 让ESLint处理模板校验
-  "vetur.grammar.customBlocks": {
-    "docs": "md",
-    "i18n": "json"
-  }
+  "editor.defaultFormatter": "esbenp.prettier-vscode"
 }

+ 1 - 1
src/main.js

@@ -1,7 +1,7 @@
 // Vue
 import Vue from 'vue'
-import i18n from './i18n'
 import App from './App'
+import i18n from './i18n'
 // 核心插件
 import ibps from './plugins/ibps'
 // store

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

@@ -99,7 +99,7 @@
                         <template slot="title">
                           <div>
                             版本号:{{
-                              activity.ban_ben_
+                              activity.xiu_ding_ban_ben_ || activity.ban_ben_
                             }}&nbsp;&nbsp;&nbsp;&nbsp;修订人:{{
                               getUserName(activity.bian_zhi_ren_)
                             }}
@@ -291,6 +291,7 @@ export default {
         })
         if (newVal !== temp) {
           this.leftData = temp
+          console.log('this.leftData====>', this.leftData)
         }
         temp.forEach((val) => {
           this.fileShow(temp[0])