zoukankan      html  css  js  c++  java
  • vue中的watch监听

       
     watch: {
          '$route'(to, from) {
            if (from.name === 'addPurchase') {
       }
            if (to.name === 'addPurchase') {
             
              } else {}
            }
          }
     
     
     watch: {
          '$route'(to, from) {
    从copyAdvanceOrder页面进入到当前页面时
            if (from.name === 'copyAdvanceOrder' || from.name === 'addAdvanceOrder') {
              this.mouseOverPic()
            }
          }
        }
  • 相关阅读:
    Html中常用的属性
    vue-页面回退
    vue-watch
    html
    Html-列表
    vue项目中px自动转换为rem
    vuex使用
    localStorage的使用
    slot
    模糊查询
  • 原文地址:https://www.cnblogs.com/wssdx/p/11506303.html
Copyright © 2011-2022 走看看