4.2 jeecg-boot helloworld

helloworld 步骤

  • 编写前端代码
  • 编写后端端代码(
  • 添加菜单 + 配置权限

    官方文档跳转

笔记

  • 添加菜单

 

 

  • 前端代码
<template>
  <div>
    {{ msg }}
  </div>
</template>

<script>
  import {getAction} from '@/api/manage'
  export default {
    data () {
      return {
        msg: "",
        url = "/test/jeecgDemo/hello"
      }
    },
    methods: {
      hello () {
        getAction(this.url).then((res) => {
          if (res.success) {
            this.msg = res.result;
          }
        })
      }
    },
    created() {
      this.hello();
    }
  }
</script>

posted @ 2019-06-18 15:19  随风落木  阅读(1)  评论(0编辑  收藏  举报  来源