mirror of https://github.com/halo-dev/halo-admin
Refactor menu table.
parent
7618dbc08c
commit
e799d297c4
|
@ -11,6 +11,13 @@ menuApi.listAll = () => {
|
|||
})
|
||||
}
|
||||
|
||||
menuApi.listTree = () => {
|
||||
return service({
|
||||
url: `${baseUrl}/tree_view`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
menuApi.create = menu => {
|
||||
return service({
|
||||
url: baseUrl,
|
||||
|
|
|
@ -175,7 +175,7 @@ export default {
|
|||
methods: {
|
||||
loadMenus() {
|
||||
this.loading = true
|
||||
menuApi.listAll().then(response => {
|
||||
menuApi.listTree().then(response => {
|
||||
this.menus = response.data.data
|
||||
this.loading = false
|
||||
})
|
||||
|
|
|
@ -335,7 +335,7 @@
|
|||
label="操作员密码:"
|
||||
:wrapper-col="wrapperCol"
|
||||
>
|
||||
<a-input v-model="options.oss_upyun_password" />
|
||||
<a-input type="password" v-model="options.oss_upyun_password" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
label="文件目录:"
|
||||
|
|
Loading…
Reference in New Issue