浏览代码

修改组件

QuKatie 3 年之前
父节点
当前提交
d0bf80b360
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/report-dialog/main.vue

+ 1 - 1
src/components/report-dialog/main.vue

@@ -119,7 +119,7 @@ export default {
     switchDialog: function(i) {
       this.visible = i;
       this.query = {
-        name: this.$router.currentRoute.name?this.$router.currentRoute.name:this.reportName
+        name: this.reportName?this.reportName:this.$router.currentRoute.name
       };
       if (i) {
         this.getList();