xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

vue watch & arrow function bug

vue watch & arrow function bug

  watch: {
    GeoJSON: function(newValue, oldValue) {
      log(`\n\n\nGeoJSON`, newValue ? JSON.parse(newValue) : newValue);
      if(newValue) {
        const {
          features,
        } = JSON.parse(newValue);
        this.showSVGAreas(features || []);
        // this.$methods.showSVGAreas(features || []);
      }
    },
    // arrow function bug
    // GeoJSON: (newValue, oldValue) => {
    //   log(`\n\n\nGeoJSON`, newValue ? JSON.parse(newValue) : newValue);
    //   if(newValue) {
    //     const {
    //       features,
    //     } = newValue;
    //     // this.showSVGAreas(features || []);
    //     // this.$methods.showSVGAreas(features || []);
    //   }
    // },
  },

bug

solution


macOS emoji

ctrl + command + space === emoji


posted @ 2020-03-22 00:02  xgqfrms  阅读(211)  评论(1编辑  收藏  举报