Explorar o código

处理地址发生变化但页面不请求数据的问题

reghao %!s(int64=4) %!d(string=hai) anos
pai
achega
e5fd9bc2bd
Modificáronse 1 ficheiros con 0 adicións e 10 borrados
  1. 0 10
      src/views/video/video.vue

+ 0 - 10
src/views/video/video.vue

@@ -142,16 +142,6 @@ export default {
       colsWidth: 8
     }
   },
-  /*  watch: {
-    $route: {
-      handler(newName, oldName) {
-        console.log(newName.path)
-        console.log('----------------')
-        console.log(oldName.path)
-      },
-      deep: true
-    }
-  },*/
   created() {
     // 获取 url 上的 path 参数
     this.videoId = this.$route.params.id