index.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!doctype html>
  2. <html lang="en" data-bs-theme="auto">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="icon" href="/app/images/dongke-logo.png">
  7. <link href="/plugins/bootstrap/bootstrap.min.css" rel="stylesheet">
  8. <title>东科软件</title>
  9. </head>
  10. <body @vue:mounted="store.getDashboardList" class="p-3 m-0 border-0 m-0 border-0">
  11. <!-- 导航条 -->
  12. <div v-scope="navbar({})"></div>
  13. <!--主体页面-->
  14. <div v-scope="chartJS()" @vue:mounted="init" class="pt-2">
  15. {{title}} <a href="#" @click="click">点击测试</a>
  16. </div>
  17. <!--版权信息-->
  18. <div v-scope="footer({})"></div>
  19. <script src="/plugins/bootstrap/bootstrap.bundle.min.js"></script>
  20. <script src="/plugins/vue/petite-vue.iife.js"></script>
  21. <script src="/plugins/axios/axios.min.js"></script>
  22. <script src="/app/common/navbar.js"></script>
  23. <script src="/app/common/footer.js"></script>
  24. <script>
  25. function chartJS() {
  26. return {
  27. title:"测试文字!",
  28. init() {
  29. },
  30. click() {
  31. let self = this;
  32. axios.get('index.ashx')
  33. .then(function (response) {
  34. self.title = response.data;
  35. })
  36. .catch(function (error) {
  37. });
  38. }
  39. }
  40. }
  41. PetiteVue.createApp().mount();
  42. </script>
  43. </body>
  44. </html>