diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue
index 6313b01..cf1c54c 100644
--- a/src/components/breadcrumb/index.vue
+++ b/src/components/breadcrumb/index.vue
@@ -3,7 +3,7 @@
当前位置:
超竞学生端
- {{item}}
+ {{item}}
@@ -14,12 +14,12 @@ export default {
data() {
return {
pages: this.data.split('/'),
- curRoute: this.$route.path
+ curRoute: this.$route.path,
+ path: this.route ? this.route : 'list'
};
},
methods: {
update(data){
- console.log(2222,data)
this.pages = data.split('/')
}
}
diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue
index d3434e0..c65c6e2 100644
--- a/src/layouts/navbar/index.vue
+++ b/src/layouts/navbar/index.vue
@@ -94,7 +94,10 @@ export default {
],
menus: [],
actives: {
- index: ['index-add'],
+ practice: ['practice-do','practice-randomDo'],
+ exam: ['exam-do'],
+ achievement: ['achievement-practice','achievement-assessment'],
+ wrongBook: ['wrongBook-do'],
}
};
},
@@ -102,7 +105,7 @@ export default {
onRoutes() {
let actives = this.actives
for(let i in this.actives){
- if(actives[i].includes(this.$route.name)) return `/${i}`
+ if(actives[i].includes(this.$route.name)) return `/${i}/list`
}
return this.$route.path
},
diff --git a/src/mixins/examDo/index.js b/src/mixins/examDo/index.js
index 3dd3178..fc4f7d1 100644
--- a/src/mixins/examDo/index.js
+++ b/src/mixins/examDo/index.js
@@ -64,14 +64,12 @@ export default {
})
},
handleExceed(files, fileList) {
- this.$message.warning(
- `当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!`
- )
+ util.warningMsg(`当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!` )
},
beforeUpload(file,item){
let ext = util.getFileExt(file.name)
if(util.isDoc(ext) && (file.size / 1024 / 1024) > this.maxSize){
- this.$message.error(`请上传${this.maxSize}M以内的文件`)
+ util.errorMsg(`请上传${this.maxSize}M以内的文件`)
return false
}
item.uploading = true
diff --git a/src/pages/achievement/assessment/index.vue b/src/pages/achievement/assessment/index.vue
index 9e3e6ae..38961f3 100644
--- a/src/pages/achievement/assessment/index.vue
+++ b/src/pages/achievement/assessment/index.vue
@@ -31,7 +31,7 @@
-
+
序号:{{index+1}}
得分:{{item.question_score}}
@@ -40,7 +40,7 @@
题干:
-