优化:把网站设置、参数配置、域名管理放到概览页面
This commit is contained in:
@@ -162,6 +162,7 @@
|
||||
import { removeSiteInfoCache } from '@/api/cms/website';
|
||||
import { ItemType } from 'ele-admin-pro/es/ele-image-upload/types';
|
||||
import { FileRecord } from '@/api/system/file/model';
|
||||
import { uuid } from '@/components/TinymceEditor/util';
|
||||
|
||||
// 是否开启响应式布局
|
||||
const themeStore = useThemeStore();
|
||||
@@ -197,9 +198,9 @@
|
||||
// 表单数据
|
||||
const { form, resetFields, assignFields } = useFormData<Navigation>({
|
||||
navigationId: undefined,
|
||||
model: 'custom',
|
||||
model: undefined,
|
||||
code: undefined,
|
||||
modelName: '单页模型',
|
||||
modelName: undefined,
|
||||
type: 0,
|
||||
title: '',
|
||||
parentId: 0,
|
||||
@@ -312,7 +313,6 @@
|
||||
});
|
||||
|
||||
const chooseModel = (item: any) => {
|
||||
console.log(item);
|
||||
form.model = `${item.value}`;
|
||||
form.modelName = `${item.label}`;
|
||||
if (item.value == 'custom') {
|
||||
@@ -325,6 +325,11 @@
|
||||
form.component = `/pages/${item.value}/index.vue`;
|
||||
return;
|
||||
}
|
||||
if (!isUpdate.value) {
|
||||
form.path = undefined;
|
||||
form.component = `/pages/${item.value}/index.vue`;
|
||||
return;
|
||||
}
|
||||
form.path = `/${item.value}/${form.navigationId}`;
|
||||
form.component = `/pages/${item.value}/index.vue`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user