Преглед изворни кода

监听路由变化加载数据

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: {},
     watch: {
       '$route'(to, from) {
-        if (to.path.includes('reportForms/sourceLink')) {
+        if (to.path) {
           this.getJmPrintBrowse();  // 重新加载数据
         }
       }