sc
This commit is contained in:
@@ -72,10 +72,10 @@ const question = defineStore({
|
|||||||
this.loading_subject1 = true;
|
this.loading_subject1 = true;
|
||||||
this.loadAllQuestion(url, 1);
|
this.loadAllQuestion(url, 1);
|
||||||
} else {
|
} else {
|
||||||
this.orderQuestion_subject4 = [];
|
this.orderQuestion_subject1 = [];
|
||||||
for (let i = 0; i < JSON_SPLIT_LENGTH; i++) {
|
for (let i = 0; i < JSON_SPLIT_LENGTH; i++) {
|
||||||
const arr = uni.getStorageSync(`question4Sub${i + 1}`) || [];
|
const arr = uni.getStorageSync(`question1Sub${i + 1}`) || [];
|
||||||
this.orderQuestion_subject4 = [...this.orderQuestion_subject4, ...arr];
|
this.orderQuestion_subject1 = [...this.orderQuestion_subject1, ...arr];
|
||||||
}
|
}
|
||||||
if (this.orderQuestion_subject1 && this.orderQuestion_subject1.length) {
|
if (this.orderQuestion_subject1 && this.orderQuestion_subject1.length) {
|
||||||
} else {
|
} else {
|
||||||
@@ -92,7 +92,7 @@ const question = defineStore({
|
|||||||
} else {
|
} else {
|
||||||
this.orderQuestion_subject4 = [];
|
this.orderQuestion_subject4 = [];
|
||||||
for (let i = 0; i < JSON_SPLIT_LENGTH; i++) {
|
for (let i = 0; i < JSON_SPLIT_LENGTH; i++) {
|
||||||
const arr = uni.getStorageSync(`question1Sub${i + 1}`) || [];
|
const arr = uni.getStorageSync(`question4Sub${i + 1}`) || [];
|
||||||
this.orderQuestion_subject4 = [...this.orderQuestion_subject4, ...arr];
|
this.orderQuestion_subject4 = [...this.orderQuestion_subject4, ...arr];
|
||||||
}
|
}
|
||||||
if (this.orderQuestion_subject4 && this.orderQuestion_subject4.length) {
|
if (this.orderQuestion_subject4 && this.orderQuestion_subject4.length) {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
allQuestionNum: 0,
|
allQuestionNum: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getTitle()
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getTitle()
|
this.getTitle()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user