This commit is contained in:
Zhang HaoYang 2023-12-29 02:40:17 +08:00
parent ac1ff358bd
commit a134181592

View File

@ -58,7 +58,7 @@
</el-tooltip>
<div class="NavInfo">
<span style="width:200px">创建时间{{ Cdate }}</span><br/>
<span style="width:200px">所属标签{{BelongTo}}</span><br/>
<span style="width:200px">所属标签{{CateNum}}</span><br/>
<div style="display: flex;flex-direction: row">
<div class="little-Circle" id="readNum" style=" margin-left:15px;">
<el-tooltip placement="top" width="150"
@ -346,6 +346,7 @@ export default {
components: {LeftSide, HotRecomment, NewRecomment, RandomRecomment, UserComment},
data() {
return {
CateNum:'',
userId:'',
userItem:{},
//
@ -439,7 +440,6 @@ export default {
this.addViewByTime();
this.UrlId = this.$route.query.uid;
this.GetNav(this.UrlId);
if(this.UrlId){
this.ViewByTime(this.UrlId)
}
@ -448,6 +448,22 @@ export default {
},
computed: {},
methods: {
//
getNavName(name) {
let _this = this;
if (name) {
axios({
method: 'post',
url: '/api/UrlAndCate/selectName',
params: {
id: name
}
}).then((res)=> {
_this.CateNum = res.data;
})
}
},
getConfig(name) {
let _this = this;
if (name) {
@ -899,8 +915,7 @@ export default {
if(that.UrlObj.desc == null){
that.flag1 = false;
}
that.getNavName(that.UrlObj.cateId);
})
},