Refactor menu table.

pull/9/head
ruibaby 2019-04-27 19:18:12 +08:00
parent 7618dbc08c
commit e799d297c4
3 changed files with 9 additions and 2 deletions

View File

@ -11,6 +11,13 @@ menuApi.listAll = () => {
}) })
} }
menuApi.listTree = () => {
return service({
url: `${baseUrl}/tree_view`,
method: 'get'
})
}
menuApi.create = menu => { menuApi.create = menu => {
return service({ return service({
url: baseUrl, url: baseUrl,

View File

@ -175,7 +175,7 @@ export default {
methods: { methods: {
loadMenus() { loadMenus() {
this.loading = true this.loading = true
menuApi.listAll().then(response => { menuApi.listTree().then(response => {
this.menus = response.data.data this.menus = response.data.data
this.loading = false this.loading = false
}) })

View File

@ -335,7 +335,7 @@
label="操作员密码:" label="操作员密码:"
:wrapper-col="wrapperCol" :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>
<a-form-item <a-form-item
label="文件目录:" label="文件目录:"