|
@@ -34,9 +34,9 @@
|
|
|
<button class="mm_btn mb_10" :class="{ active: activeBtn === pathOne }"
|
|
<button class="mm_btn mb_10" :class="{ active: activeBtn === pathOne }"
|
|
|
@click="toPage(pathOne)">成绩分析</button>
|
|
@click="toPage(pathOne)">成绩分析</button>
|
|
|
|
|
|
|
|
- <button v-if="isShowKnowledgeButtons" class="mm_btn mb_10" :class="{ active: activeBtn === pathTwo }"
|
|
|
|
|
|
|
+ <button class="mm_btn mb_10" :class="{ active: activeBtn === pathTwo }"
|
|
|
@click="toPage(pathTwo)">个性化错题</button>
|
|
@click="toPage(pathTwo)">个性化错题</button>
|
|
|
- <button v-if="isShowKnowledgeButtons && !isTotalScore" class="mm_btn mb_10" :class="{ active: activeBtn === pathThree }"
|
|
|
|
|
|
|
+ <button class="mm_btn mb_10" :class="{ active: activeBtn === pathThree }"
|
|
|
@click="toPage(pathThree)">个人画像</button>
|
|
@click="toPage(pathThree)">个人画像</button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -76,10 +76,6 @@ export default {
|
|
|
updateScrollTop() {
|
|
updateScrollTop() {
|
|
|
return this.$store.state.report.updateScrollTop;//监听改变滚动条参数
|
|
return this.$store.state.report.updateScrollTop;//监听改变滚动条参数
|
|
|
},
|
|
},
|
|
|
- isShowKnowledgeButtons() {
|
|
|
|
|
- // 从环境变量中获取基础URL,判断是否显示按钮
|
|
|
|
|
- return process.env.VUE_APP_BASE !== 'https://www.k12100.com';
|
|
|
|
|
- },
|
|
|
|
|
// 判断是否为总分科目,用于控制个人画像按钮显示
|
|
// 判断是否为总分科目,用于控制个人画像按钮显示
|
|
|
isTotalScore() {
|
|
isTotalScore() {
|
|
|
return this.$store.state.report.isTotalScore;
|
|
return this.$store.state.report.isTotalScore;
|