js.html 782 B

123456789101112131415
  1. {{define "js"}}
  2. <script src="{{ .base_path }}assets/vue/vue.min.js?{{ .cur_ver }}"></script>
  3. <script src="{{ .base_path }}assets/moment/moment.min.js"></script>
  4. <script src="{{ .base_path }}assets/ant-design-vue/antd.min.js"></script>
  5. <script src="{{ .base_path }}assets/axios/axios.min.js?{{ .cur_ver }}"></script>
  6. <script src="{{ .base_path }}assets/qs/qs.min.js"></script>
  7. <script src="{{ .base_path }}assets/js/axios-init.js?{{ .cur_ver }}"></script>
  8. <script src="{{ .base_path }}assets/js/util/date-util.js?{{ .cur_ver }}"></script>
  9. <script src="{{ .base_path }}assets/js/util/index.js?{{ .cur_ver }}"></script>
  10. <script src="{{ .base_path }}assets/js/langs.js"></script>
  11. <script>
  12. const basePath = '{{ .base_path }}';
  13. axios.defaults.baseURL = basePath;
  14. </script>
  15. {{end}}