commonFunc.js 613 B

1234567891011121314151617181920212223242526272829303132
  1. // src/boot/commonFunc.js
  2. import { boot } from "quasar/wrappers";
  3. import { api } from "boot/axios";
  4. const myMixin = {
  5. data() {
  6. return {};
  7. },
  8. created: function () {},
  9. methods: {
  10. greetings: function () {
  11. console.log("Howdy my good fellow!");
  12. },
  13. goPage(val) {
  14. this.$router.push(val);
  15. },
  16. getRestBase() {
  17. api
  18. .get("api/public/servingurl")
  19. .then((response) => {
  20. this.rest_base = response.data;
  21. })
  22. .catch((e) => {
  23. console.log(e);
  24. });
  25. },
  26. },
  27. };
  28. export default boot(({ app }) => {});
  29. export { myMixin };