瀏覽代碼

监听路由变化加载数据

zhangqing 1 年之前
父節點
當前提交
26d56c9db8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/reportForms/sourceLink/index.vue

+ 1 - 1
src/views/reportForms/sourceLink/index.vue

@@ -21,7 +21,7 @@
     computed: {},
     computed: {},
     watch: {
     watch: {
       '$route'(to, from) {
       '$route'(to, from) {
-        if (to.path.includes('reportForms/sourceLink')) {
+        if (to.path) {
           this.getJmPrintBrowse();  // 重新加载数据
           this.getJmPrintBrowse();  // 重新加载数据
         }
         }
       }
       }