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 emit = defineEmits(['onFetch']);
|
||||||
|
|
||||||
const iconModuleV = computed(() => {
|
const iconModule = computed(() => {
|
||||||
moduleName.value = getName();
|
moduleName.value = getName();
|
||||||
if (isSameModuleName) {
|
if (isSameModuleName) {
|
||||||
return router.options.routes[1].children.find((r) => r.name === moduleName.value)
|
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();
|
moduleName.value = getName();
|
||||||
if (isSameModuleName) {
|
if (isSameModuleName) {
|
||||||
return router.options.routes[1].children.find((r) => r.name === moduleName.value)
|
return router.options.routes[1].children.find((r) => r.name === moduleName.value)
|
||||||
|
@ -160,10 +160,10 @@ const toModuleV = computed(() => {
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
size="md"
|
size="md"
|
||||||
:icon="iconModuleV"
|
:icon="iconModule"
|
||||||
color="white"
|
color="white"
|
||||||
class="link"
|
class="link"
|
||||||
:to="toModuleV"
|
:to="toModule"
|
||||||
>
|
>
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ t('globals.goToModuleIndex') }}
|
{{ t('globals.goToModuleIndex') }}
|
||||||
|
@ -252,7 +252,6 @@ const toModuleV = computed(() => {
|
||||||
</div>
|
</div>
|
||||||
<slot name="after" />
|
<slot name="after" />
|
||||||
</template>
|
</template>
|
||||||
<!-- Skeleton -->
|
|
||||||
<SkeletonDescriptor v-if="!entity || isLoading" />
|
<SkeletonDescriptor v-if="!entity || isLoading" />
|
||||||
</div>
|
</div>
|
||||||
<QInnerLoading
|
<QInnerLoading
|
||||||
|
|
Loading…
Reference in New Issue