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>