Sfoglia il codice sorgente

监听路由变化加载数据

zhangqing 1 anno fa
parent
commit
26d56c9db8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/reportForms/sourceLink/index.vue

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

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