update
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user