用户课程列表刷新

This commit is contained in:
2024-10-21 13:28:34 +08:00
parent 1af3692c69
commit b3a05def01

View File

@@ -330,11 +330,14 @@ export default {
// AddOrUpdate // AddOrUpdate
}, },
created() { created() {
this.userId=this.$route.query.id
console.log(this.$route.query); console.log(this.$route.query);
console.log(this.userId, "onsole.log(this.$route.query)"); console.log(this.userId, "onsole.log(this.$route.query)");
this.init(); this.init();
}, },
activated() { activated() {
this.userId=this.$route.query.id
this.init();
// this.getDataList() // this.getDataList()
// this.getcourpeList() // this.getcourpeList()
}, },
@@ -483,11 +486,11 @@ export default {
}, },
init() { init() {
if (!this.userId) { // if (!this.userId) {
setTimeout(() => { // setTimeout(() => {
this.init(); // this.init();
}, 1000); // }, 1000);
} // }
this.$http({ this.$http({
url: this.$http.adornUrl(`/book/user/info/${this.userId}`), url: this.$http.adornUrl(`/book/user/info/${this.userId}`),
method: "get", method: "get",