|
@@ -64,6 +64,8 @@ import { defineComponent, reactive, toRefs } from "vue";
|
|
|
import sysIcon from "@/assets/img/home/sys_icon.png";
|
|
|
import xcIcon from "@/assets/img/home/xc_icon.png";
|
|
|
import mtcIcon from "@/assets/img/home/mtc_icon.png";
|
|
|
+import markIcon from "@/assets/img/home/mark_icon.png";
|
|
|
+import sanliIcon from "@/assets/img/home/sanli_icon.png";
|
|
|
export default defineComponent({
|
|
|
setup() {
|
|
|
const state = reactive({
|
|
@@ -99,7 +101,7 @@ export default defineComponent({
|
|
|
{
|
|
|
text: "模拟考试",
|
|
|
isSelect: false,
|
|
|
- path: "/examInstructions",
|
|
|
+ path: "/home/selectExamSubject",
|
|
|
query: {
|
|
|
subject: 1,
|
|
|
liceBus: "1",
|
|
@@ -133,7 +135,7 @@ export default defineComponent({
|
|
|
{
|
|
|
text: "模拟考试",
|
|
|
isSelect: false,
|
|
|
- path: "/examInstructions",
|
|
|
+ path: "/home/selectExamSubject",
|
|
|
query: {
|
|
|
subject: 4,
|
|
|
liceBus: "1",
|
|
@@ -166,7 +168,7 @@ export default defineComponent({
|
|
|
{
|
|
|
text: "模拟考试",
|
|
|
isSelect: false,
|
|
|
- path: "/examInstructions",
|
|
|
+ path: "/home/selectExamSubject",
|
|
|
query: {
|
|
|
subject: 1,
|
|
|
liceMoto: "1",
|
|
@@ -196,7 +198,7 @@ export default defineComponent({
|
|
|
{
|
|
|
text: "模拟考试",
|
|
|
isSelect: false,
|
|
|
- path: "/examInstructions",
|
|
|
+ path: "/home/selectExamSubject",
|
|
|
query: {
|
|
|
subject: 4,
|
|
|
},
|
|
@@ -206,6 +208,22 @@ export default defineComponent({
|
|
|
isSelect: false,
|
|
|
path: "",
|
|
|
},
|
|
|
+ {
|
|
|
+ text: "三力测试",
|
|
|
+ icon: sanliIcon,
|
|
|
+ children: [],
|
|
|
+ isOpen: false,
|
|
|
+ isSelect: false,
|
|
|
+ path: "/home/markLine",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: "标志标线大全",
|
|
|
+ icon: markIcon,
|
|
|
+ children: [],
|
|
|
+ isOpen: false,
|
|
|
+ isSelect: false,
|
|
|
+ path: "/home/markLine",
|
|
|
+ },
|
|
|
],
|
|
|
tabValue: [-1, -1],
|
|
|
});
|
|
@@ -242,9 +260,8 @@ export default defineComponent({
|
|
|
},
|
|
|
selectIndex: number
|
|
|
) {
|
|
|
- this.tabValue[1] == -1
|
|
|
- ? (this.tabValue[1] = selectIndex)
|
|
|
- : (this.tabValue[1] = -1);
|
|
|
+ this.tabValue[1] = selectIndex;
|
|
|
+
|
|
|
item.isSelect = !item.isSelect;
|
|
|
item.isOpen = !item.isOpen;
|
|
|
if (item.path) {
|