Commit 7f883aff authored by Facius's avatar Facius

refactor: 首页去掉冗余代码

parent e3271b1f
...@@ -255,12 +255,12 @@ export default { ...@@ -255,12 +255,12 @@ export default {
] ]
}, },
}, },
watch: { // watch: {
vuex_token(val, oldVal) { // vuex_token(val, oldVal) {
// 监听token变化,如果更新则重新加载页面数据 // // 监听token变化,如果更新则重新加载页面数据
val && !oldVal && this.initData() // val && !oldVal && this.initData()
}, // },
}, // },
onLoad() { onLoad() {
if (this.vuex_token) { if (this.vuex_token) {
this.loading = true this.loading = true
...@@ -284,10 +284,10 @@ export default { ...@@ -284,10 +284,10 @@ export default {
} }
}, },
methods: { methods: {
initData() { // initData() {
// this.getProvinceList() // // this.getProvinceList()
this.queryMyQuestionWarehouseDetail('0') // this.queryMyQuestionWarehouseDetail('0')
}, // },
// 检查是否具有体验资格 // 检查是否具有体验资格
checkGetQuestion(id) { checkGetQuestion(id) {
this.$u.api this.$u.api
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment