update
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<div class="wrapper">
|
||||
<div class="wrapper" v-loading="loading"
|
||||
element-loading-text="拼命加载中"
|
||||
element-loading-spinner="el-icon-loading"
|
||||
element-loading-background="var(--theme-bg-color)">
|
||||
<LeftSide :category="category"></LeftSide>
|
||||
<div class="main-container">
|
||||
<div class="content-wrapper">
|
||||
@@ -32,6 +35,7 @@ export default {
|
||||
return {
|
||||
userNavList: [],
|
||||
category: [],
|
||||
loading:true,
|
||||
}
|
||||
},
|
||||
// 监听,当路由发生变化的时候执行
|
||||
@@ -99,8 +103,12 @@ export default {
|
||||
userId: localStorage.getItem("userId"),
|
||||
}
|
||||
}).then(function (res) {
|
||||
// console.log(res);
|
||||
if (res.data) {
|
||||
_this.userNavList = res.data;
|
||||
_this.loading=false;
|
||||
}else {
|
||||
_this.loading=true;
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
Reference in New Issue
Block a user