🎨 修改代码规范.
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
<a-link target="_blank" :href="`https://github.com/dromara/orion-visor/releases/tag/v${version}`">v{{ version }}</a-link>
|
||||
</a-space>
|
||||
<span class="copyright">
|
||||
Copyright<icon-copyright /> 2023 - {{ new Date().getFullYear() }} Jiahang Li, All rights reserved.
|
||||
Copyright<icon-copyright /> 2023 - {{ new Date().getFullYear() }} <a href="https://dromara.org">Dromara</a>, All rights reserved. Designed by
|
||||
<a href="https://orionsec.cn" target="_blank">Jiahang Li.</a>
|
||||
</span>
|
||||
</a-space>
|
||||
</a-layout-footer>
|
||||
|
||||
@@ -22,7 +22,13 @@
|
||||
</td>
|
||||
<!-- 子菜单 -->
|
||||
<td>
|
||||
<a-checkbox :value="childrenMenu.id">
|
||||
<!-- 默认路由 -->
|
||||
<a-checkbox v-if="childrenMenu.component === DEFAULT_ROUTE_NAME"
|
||||
:value="childrenMenu.id">
|
||||
{{ childrenMenu.name }} <span class="span-red">(必选)</span>
|
||||
</a-checkbox>
|
||||
<!-- 普通子菜单 -->
|
||||
<a-checkbox v-else :value="childrenMenu.id">
|
||||
{{ childrenMenu.name }}
|
||||
</a-checkbox>
|
||||
</td>
|
||||
@@ -73,6 +79,7 @@
|
||||
import type { MenuQueryResponse } from '@/api/system/menu';
|
||||
import { useCacheStore } from '@/store';
|
||||
import { ref, watch } from 'vue';
|
||||
import { DEFAULT_ROUTE_NAME } from '@/router/constants';
|
||||
import { findNode, flatNodeKeys, flatNodes } from '@/utils/tree';
|
||||
|
||||
const cacheStore = useCacheStore();
|
||||
|
||||
@@ -39,7 +39,11 @@
|
||||
return props.modelValue;
|
||||
},
|
||||
set(e) {
|
||||
emits('update:modelValue', e);
|
||||
if (e) {
|
||||
emits('update:modelValue', e);
|
||||
} else {
|
||||
emits('update:modelValue', null);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -40,7 +40,15 @@
|
||||
return props.modelValue;
|
||||
},
|
||||
set(e) {
|
||||
emits('update:modelValue', e);
|
||||
if (e) {
|
||||
emits('update:modelValue', e);
|
||||
} else {
|
||||
if (props.multiple) {
|
||||
emits('update:modelValue', []);
|
||||
} else {
|
||||
emits('update:modelValue', null);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
const optionData = ref<Array<SelectOptionData>>([]);
|
||||
|
||||
@@ -39,7 +39,15 @@
|
||||
return props.modelValue;
|
||||
},
|
||||
set(e) {
|
||||
emits('update:modelValue', e);
|
||||
if (e) {
|
||||
emits('update:modelValue', e);
|
||||
} else {
|
||||
if (props.multiple) {
|
||||
emits('update:modelValue', []);
|
||||
} else {
|
||||
emits('update:modelValue', null);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
const optionData = ref<Array<SelectOptionData>>([]);
|
||||
|
||||
Reference in New Issue
Block a user