Merge pull request '邓洁 : 修改菜单细节' (#24) from dengjie into master
Reviewed-on: http://git.feashow.cn/feashow/tunnel-cloud-front/pulls/24
This commit is contained in:
@@ -295,15 +295,15 @@ const handleEdit = async (menuId) => {
|
||||
title.value = '修改菜单'
|
||||
restFrom()
|
||||
await getMenuInfo(menuId).then(res => {
|
||||
if(res.data.isFrame==false){
|
||||
res.data.isFrame='0'
|
||||
if(form.value.isFrame==false){
|
||||
form.value.isFrame='0'
|
||||
}else {
|
||||
res.data.isFrame='1'
|
||||
form.value.isFrame='1'
|
||||
}
|
||||
if(res.data.isCache==false){
|
||||
res.data.isCache='0'
|
||||
if(form.value.isCache==false){
|
||||
form.value.isCache='0'
|
||||
}else {
|
||||
res.data.isCache='1'
|
||||
form.value.isCache='1'
|
||||
}
|
||||
form.value = {...res.data}
|
||||
})
|
||||
@@ -336,6 +336,8 @@ const handleSubmit = async (instance) => {
|
||||
if (!instance) return
|
||||
instance.validate(async (valid, fields) => {
|
||||
if (!valid) return
|
||||
form.value.isFrame = form.value.isFrame !== '0';
|
||||
form.value.isCache = form.value.isCache !== '0';
|
||||
if (title.value === '新增菜单') {
|
||||
await addMenu(form.value).then(res => {
|
||||
if (res.code === 1000) {
|
||||
|
||||
Reference in New Issue
Block a user