This commit is contained in:
2023-12-27 16:44:51 +08:00
parent fde3e77bb5
commit 31a770ebe4
20 changed files with 665 additions and 352 deletions

View File

@@ -66,18 +66,16 @@ export default {
userId:localStorage.getItem('userId')
}
}).then(function (res) {
if (res.data.data) {
_this.category = res.data.data;
} else {
return false;
}
}).catch((error) => {
Vue.prototype.$notify.error({
title: '错误',
message: error,
offset: 0
});
// Vue.prototype.$notify.error({
// title: '错误',
// message: error,
// offset: 0
// });
})
}else {
Vue.prototype.$notify.error({
@@ -90,7 +88,11 @@ export default {
},
getPath() {
document.querySelector(this.$route.query.name).scrollIntoView(true)
if(this.$route.query.name){
document.querySelector(this.$route.query.name).scrollIntoView(true)
}else{
return false;
}
},
getUserNav() {
@@ -104,19 +106,15 @@ export default {
}
}).then(function (res) {
// console.log(res);
if (res.data) {
_this.userNavList = res.data;
_this.loading=false;
}else {
_this.loading=true;
}
}).catch((error) => {
Vue.prototype.$notify.error({
title: '错误',
message: error === null ? '' : error,
offset: 0
});
// Vue.prototype.$notify.error({
// title: '错误',
// message: error === null ? '' : error,
// offset: 0
// });
})
} else {
Vue.prototype.$notify.error({