zhengjinyi 1 年間 前
コミット
8d591217b0
1 ファイル変更10 行追加0 行削除
  1. 10 0
      src/views/sys/user-edit.vue

+ 10 - 0
src/views/sys/user-edit.vue

@@ -24,6 +24,7 @@
     </el-form>
     <div slot="footer" class="dialog-footer" style="width:1px;margin:0 auto;padding:40px 0 80px 0;">
       <el-button v-loading.fullscreen.lock="fullscreenLoading" type="primary" style="width: 100px;" @click="onSubmite()">保存</el-button>
+      <el-button plain @click="backToList">返回</el-button>
     </div>
   </div>
 </template>
@@ -129,6 +130,15 @@ export default {
         console.log(error)
         this.fullscreenLoading = false
       }
+    },
+    backToList() {
+      this.$store.dispatch('tagsView/delView', this.$route).then(() => {
+        this.$nextTick(() => {
+          this.$router.replace({
+            path: '/sys/user'
+          })
+        })
+      })
     }
   }
 }