index.tpl 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  6. <link rel="stylesheet" href="//at.alicdn.com/t/font_1473762766_7074292.css">
  7. <link rel='mask-icon' href="https://raw.githubusercontent.com/ElemeFE/element/dev/examples/assets/images/element-logo-small.svg" color="#20a0ff">
  8. <title>Element</title>
  9. </head>
  10. <body>
  11. <div id="app"></div><% if (process.env.NODE_ENV === 'production') { %>
  12. <script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.3.0/vue.runtime.min.js"></script>
  13. <script src="//cdnjs.cloudflare.com/ajax/libs/vue-router/2.1.1/vue-router.min.js"></script><% } %>
  14. </body>
  15. <% if (process.env.NODE_ENV === 'production') { %><script>
  16. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  17. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  18. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  19. })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  20. ga('create', 'UA-84335471-1', 'auto');
  21. ga('send', 'pageview');
  22. window.addEventListener('hashchange', function () {
  23. ga('set', 'page', window.location.href);
  24. ga('send', 'pageview');
  25. });
  26. </script><% } %>
  27. </html>