完成商城下单功能
This commit is contained in:
@@ -274,18 +274,24 @@
|
||||
settingVisible.value = true;
|
||||
};
|
||||
|
||||
listMenus({ menuType: 0, hide: 0 }).then((data) => {
|
||||
if (data) {
|
||||
menuList.value = data;
|
||||
menuTree.value = toTreeData({
|
||||
data: data.map((d) => {
|
||||
return { ...d, key: d.menuId, value: d.menuId };
|
||||
}),
|
||||
idField: 'menuId',
|
||||
parentIdField: 'parentId'
|
||||
const getMenus = () => {
|
||||
if (!getMerchantName()) {
|
||||
listMenus({ menuType: 0, hide: 0 }).then((data) => {
|
||||
if (data) {
|
||||
menuList.value = data;
|
||||
menuTree.value = toTreeData({
|
||||
data: data.map((d) => {
|
||||
return { ...d, key: d.menuId, value: d.menuId };
|
||||
}),
|
||||
idField: 'menuId',
|
||||
parentIdField: 'parentId'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
getMenus();
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
Reference in New Issue
Block a user