{index + 1}}. {{diff.key}} ({{diff.oldValue}} => {{diff.newValue}})
          </span>
          <!-- 新增/删减只显示key -->
          <span v-else-if="diff.type==='added'">
            {{index + 1}}. {{diff.key}}
          </span>
          <span v-else-if="diff.type==='removed'">
            {{index + 1}}. {{diff.key}}
          </span>
        </li>
      </ul>
    </div>
  </div>
</body>

</html>

<script>

const app = new Vue({
  el: '#app',
  data() {
    return {
      /**
       * 文件内容