Explorar o código

监听路由变化加载数据

zhangqing hai 1 ano
pai
achega
26d56c9db8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();  // 重新加载数据
         }
       }