Browse Source

Fixed the problem of label bar not scrolling

bing127 5 years ago
parent
commit
57e2cbaa26
2 changed files with 3 additions and 1 deletions
  1. 2 1
      src/layout/components/TagsView/index.vue
  2. 1 0
      src/views/sysjob/index.vue

+ 2 - 1
src/layout/components/TagsView/index.vue

@@ -149,7 +149,8 @@ export default {
       })
     },
     closeSelectedTag(view) {
-      const index = this.visitedViews.findIndex(item => item.fullPath === view.fullPath)
+      const routerPath = view.fullPath ? view.fullPath : view
+      const index = this.visitedViews.findIndex(item => item.fullPath === routerPath)
       if (index > -1) {
         const path = this.visitedViews[index]
         this.$store.dispatch('tagsView/delView', path).then(({ visitedViews }) => {

+ 1 - 0
src/views/sysjob/index.vue

@@ -439,6 +439,7 @@ export default {
     },
     /** 提交按钮 */
     submitForm: function() {
+      console.log(this.form)
       this.$refs['form'].validate(valid => {
         if (valid) {
           if (this.form.jobId !== undefined) {