App.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <script>
  7. // import {
  8. // }
  9. import { getRebateOrderMsg } from "@/api/App";
  10. export default {
  11. name: "App",
  12. data() {
  13. return {};
  14. },
  15. watch: {
  16. // $route(route) {
  17. // let that = this.$notify;
  18. // let aa = function () {
  19. // let intivalId2 = setInterval(() => {
  20. // that.info({
  21. // title: "自定义位置",
  22. // message: "右下角弹出的消息",
  23. // position: "bottom-right",
  24. // duration: 0,
  25. // onClose() {
  26. // console.log("关闭回调");
  27. // clearInterval(intivalId2);
  28. // aa();
  29. // },
  30. // });
  31. // clearInterval(intivalId2);
  32. // }, 3000);
  33. // };
  34. // if (route.path == "/dashboard") {
  35. // console.log(32312312312);
  36. // // let res = await getRebateOrderMsg();
  37. // // console.log(res);
  38. // // let intivalId = setInterval(() => {
  39. // // this.$notify.info({
  40. // // title: "自定义位置",
  41. // // message: "右下角弹出的消息",
  42. // // position: "bottom-right",
  43. // // duration: 0,
  44. // // onClose() {
  45. // // console.log("关闭回调");
  46. // // console.log(that);
  47. // // clearInterval(intivalId);
  48. // // aa();
  49. // // },
  50. // // });
  51. // // clearInterval(intivalId);
  52. // // }, 3000);
  53. // } else {
  54. // // clearInterval(id);
  55. // }
  56. // },
  57. // immediate: true,
  58. },
  59. updated() {},
  60. methods: {},
  61. };
  62. </script>