|
@@ -382,16 +382,13 @@ export default {
|
|
|
if (newVal == 1) this.getCareerProspects()
|
|
|
}
|
|
|
},
|
|
|
- '$route': {
|
|
|
- immediate: true,
|
|
|
- handler(val) {
|
|
|
- console.log(val)
|
|
|
- this.code = val.query.code
|
|
|
- this.type = val.query.type || '本科'
|
|
|
- if (val.query.code) {
|
|
|
- this.getOverView()
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ console.log(this.$route.query.code)
|
|
|
+ this.code = this.$route.query.code
|
|
|
+ this.type = this.$route.query.type || '本科'
|
|
|
+ if (this.$route.query.code) {
|
|
|
+ this.getOverView()
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|