Merge branch 'develop'
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
commit
2192041e35
2 changed files with 14 additions and 1 deletions
|
|
@ -10,10 +10,11 @@ import { onMounted, watch } from 'vue';
|
||||||
import { useManualStore } from 'src/stores/manual';
|
import { useManualStore } from 'src/stores/manual';
|
||||||
import { useNavigator } from 'src/stores/navigator';
|
import { useNavigator } from 'src/stores/navigator';
|
||||||
import { Icon } from '@iconify/vue/dist/iconify.js';
|
import { Icon } from '@iconify/vue/dist/iconify.js';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
|
||||||
// NOTE: Variable
|
// NOTE: Variable
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
const router = useRouter();
|
||||||
const manualStore = useManualStore();
|
const manualStore = useManualStore();
|
||||||
const navigatorStore = useNavigator();
|
const navigatorStore = useNavigator();
|
||||||
const { dataManual, dataTroubleshooting } = storeToRefs(manualStore);
|
const { dataManual, dataTroubleshooting } = storeToRefs(manualStore);
|
||||||
|
|
@ -33,6 +34,16 @@ watch(
|
||||||
if (route.name === 'Troubleshooting') {
|
if (route.name === 'Troubleshooting') {
|
||||||
const res = await manualStore.getTroubleshooting();
|
const res = await manualStore.getTroubleshooting();
|
||||||
dataTroubleshooting.value = res ? res : [];
|
dataTroubleshooting.value = res ? res : [];
|
||||||
|
if (
|
||||||
|
res.length &&
|
||||||
|
res.length === 1 &&
|
||||||
|
res[0].page &&
|
||||||
|
res[0].page.length === 1
|
||||||
|
) {
|
||||||
|
router.replace(
|
||||||
|
`/troubleshooting/${res[0].category}/${res[0].page[0].name}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ immediate: true },
|
{ immediate: true },
|
||||||
|
|
|
||||||
|
|
@ -2506,6 +2506,7 @@ watch(
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<KebabAction
|
<KebabAction
|
||||||
|
v-if="actionDisplay"
|
||||||
:disable-delete="props.row.status !== 'CREATED'"
|
:disable-delete="props.row.status !== 'CREATED'"
|
||||||
:status="props.row.status"
|
:status="props.row.status"
|
||||||
:id-name="props.row.name"
|
:id-name="props.row.name"
|
||||||
|
|
@ -3252,6 +3253,7 @@ watch(
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<KebabAction
|
<KebabAction
|
||||||
|
v-if="actionDisplay"
|
||||||
:use-copy="productAndServiceTab === 'service'"
|
:use-copy="productAndServiceTab === 'service'"
|
||||||
:status="props.row.status"
|
:status="props.row.status"
|
||||||
:id-name="props.row.name"
|
:id-name="props.row.name"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue