refactor: refs #8045 modified icon and module const
This commit is contained in:
parent
e31803348e
commit
01b7b2adeb
|
@ -127,7 +127,7 @@ function copyIdText(id) {
|
|||
|
||||
const emit = defineEmits(['onFetch']);
|
||||
|
||||
const iconModuleV = computed(() => {
|
||||
const iconModule = computed(() => {
|
||||
moduleName.value = getName();
|
||||
if (isSameModuleName) {
|
||||
return router.options.routes[1].children.find((r) => r.name === moduleName.value)
|
||||
|
@ -137,7 +137,7 @@ const iconModuleV = computed(() => {
|
|||
}
|
||||
});
|
||||
|
||||
const toModuleV = computed(() => {
|
||||
const toModule = computed(() => {
|
||||
moduleName.value = getName();
|
||||
if (isSameModuleName) {
|
||||
return router.options.routes[1].children.find((r) => r.name === moduleName.value)
|
||||
|
@ -160,10 +160,10 @@ const toModuleV = computed(() => {
|
|||
flat
|
||||
dense
|
||||
size="md"
|
||||
:icon="iconModuleV"
|
||||
:icon="iconModule"
|
||||
color="white"
|
||||
class="link"
|
||||
:to="toModuleV"
|
||||
:to="toModule"
|
||||
>
|
||||
<QTooltip>
|
||||
{{ t('globals.goToModuleIndex') }}
|
||||
|
@ -252,7 +252,6 @@ const toModuleV = computed(() => {
|
|||
</div>
|
||||
<slot name="after" />
|
||||
</template>
|
||||
<!-- Skeleton -->
|
||||
<SkeletonDescriptor v-if="!entity || isLoading" />
|
||||
</div>
|
||||
<QInnerLoading
|
||||
|
|
Loading…
Reference in New Issue