增加路由模式配置项
This commit is contained in:
@ -48,7 +48,7 @@ const formId = ref(currentRoute.value?.params?.id);
|
||||
|
||||
const { notification } = useMessage();
|
||||
const { t } = useI18n();
|
||||
const hash = location.hash;
|
||||
const hash = location.hash||location.pathname;
|
||||
const mode = ref('read');
|
||||
if (hash.indexOf('createForm') > 0) {
|
||||
mode.value = 'create';
|
||||
|
||||
@ -95,7 +95,7 @@
|
||||
const selectedKeys = ref(['ToDoTasks']);
|
||||
const query = unref(currentRoute).query;
|
||||
let id = 'ToDoTasks';
|
||||
const lHash = location.hash;
|
||||
const lHash = location.hash||location.pathname;
|
||||
if (lHash.indexOf('/draft') > 0) {
|
||||
id = 'Drafts';
|
||||
} else if (lHash.indexOf('/myProcess') > 0) {
|
||||
|
||||
Reference in New Issue
Block a user