Эх сурвалжийг харах

监听路由变化加载数据

zhangqing 1 жил өмнө
parent
commit
26d56c9db8

+ 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();  // 重新加载数据
         }
       }