网站:顶级域名改为自定义域名
This commit is contained in:
@@ -372,7 +372,8 @@
|
||||
.validate()
|
||||
.then(() => {
|
||||
const navigationForm = {
|
||||
...form
|
||||
...form,
|
||||
parentId: form.parentId || 0
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateNavigation : addNavigation;
|
||||
saveOrUpdate(navigationForm)
|
||||
|
||||
@@ -139,7 +139,6 @@
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
placement="topRight"
|
||||
:disabled="record.home == 1"
|
||||
title="确定要删除此菜单吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
@@ -369,37 +368,37 @@
|
||||
// return;
|
||||
// }
|
||||
// TODO 单页模型
|
||||
if (row?.model == 'custom') {
|
||||
router.push({
|
||||
path: `/cms/design`,
|
||||
query: {
|
||||
id: row.navigationId,
|
||||
type: row.model
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if (row?.model == 'custom') {
|
||||
// router.push({
|
||||
// path: `/cms/design`,
|
||||
// query: {
|
||||
// id: row.navigationId,
|
||||
// type: row.model
|
||||
// }
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
|
||||
// TODO 文章列表
|
||||
if (row?.model === 'article') {
|
||||
router.push({
|
||||
path: `/cms/article`,
|
||||
query: {
|
||||
id: row.navigationId,
|
||||
type: row.model
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if (row?.model === 'article') {
|
||||
// router.push({
|
||||
// path: `/cms/article`,
|
||||
// query: {
|
||||
// id: row.navigationId,
|
||||
// type: row.model
|
||||
// }
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
|
||||
// TODO 产品列表
|
||||
if (row?.model === 'product') {
|
||||
router.push({
|
||||
path: '/goods/index',
|
||||
query: { categoryId: row.navigationId, type: row.type }
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if (row?.model === 'product') {
|
||||
// router.push({
|
||||
// path: '/goods/index',
|
||||
// query: { categoryId: row.navigationId, type: row.type }
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
};
|
||||
|
||||
const openLayout = (row?: Navigation) => {
|
||||
@@ -410,6 +409,7 @@
|
||||
|
||||
/* 删除单个 */
|
||||
const remove = (row: Navigation) => {
|
||||
console.log(row);
|
||||
if (row.children?.length) {
|
||||
message.error('请先删除子节点');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user